Task#

class Task[source]#

Bases: Config

Creates the individual spectrum table from the DACE table

We assume that all raw files are in the same directory. We take the filenames from the DACE table but ignore the path information in the same DACE table.

We also read the “model” column from the DACE table and compute rv_mean (actually the median) and rv_shift.

prog_: ClassVar[Optional[str]] = 'preprocess_table'#

Program name

ini_strict_sections_: ClassVar[Sequence[str]] = ['preprocess_table']#

Names of additional sections to parse in configuration files, unknown keys error

ini_relaxed_sections_: ClassVar[Sequence[str]] = ['preprocess']#

Names of sections to parse in configuration files, with unknown keys ignored

env_prefix_: ClassVar[str] = 'RASSINE'#

Prefix for automatically derived environment variable names

config: Sequence[pathlib.Path][Sequence[Path]]#

Use the specified configuration files.

Files can be separated by commas/the command can be invoked multiple times.

root: Path[Path]#

Root path of the data, used as a base for other relative paths

pickle_protocol: PickleProtocol[PickleProtocol]#

Pickle protocol version to use

logging_level: LoggingLevel[LoggingLevel]#

Logging level to use

dace_table: Path[Path]#

Input DACE table

input_folder: Path[Path]#

Relative path to the folder containing the raw spectra

output_table: Path[Path]#

Output individual table

glob_pattern: str[str]#

Pattern for input files, by default look for FITS files

verify_sorted: bool[bool]#

Whether to verify that the filenames are sorted in the input DACE table

This is an assumption that is made at several points in RASSINE/YARARA, and it is best to know whether this assumption is violated.

strict: bool[bool]#

If true, we error if a file is present on the disk but not in the master table

__init__(config, root, pickle_protocol, logging_level, dace_table, input_folder, output_table, glob_pattern, verify_sorted, strict)#