Skip to contents

This function returns the default YAML specifications file path corresponding to a given spectra file. It first determines the file type by analyzing the file content and then retrieves the associated default specifications path.

Usage

seasonder_defaultSpecsPathForFile(filepath, endian = "big")

Arguments

filepath

A character string specifying the path to the spectra file.

endian

A character string indicating the file's byte order ("big" by default).

Value

A character string representing the default YAML specifications file path for the detected file type.

Details

The function leverages seasonder_find_spectra_file_type to determine whether the file is of type "CS" or "CSSY". It then uses seasonder_defaultSpecsFilePath to obtain the corresponding default specifications path.