vasca.vasca_pipe
¶
Script that runs the VASCA pipeline.
Module Contents¶
Functions¶
Creates the pipeline output directory and necessary parent directories. |
|
Setup logger. Gets configuration from global config variable set with get_config. |
|
Remove field data that is not needed for further analysis to save memory |
|
Run analysis on a single field |
|
Run field-level analysis (docs-version) |
|
Helper function to do clustering for passed sources or detections. The main purpose is to only keep the needed tables, to save memory usage |
|
Runs the VASCA pipeline |
|
Run VASCA pipeline from a configuration file passed with the ArgumentParser |
API¶
- vasca.vasca_pipe.set_pipe_dir(vasca_cfg: dict) pathlib.Path [source]¶
Creates the pipeline output directory and necessary parent directories.
- Returns:
Path object pointing to the pipeline directory
- Return type:
- vasca.vasca_pipe.set_logger(vasca_cfg)[source]¶
Setup logger. Gets configuration from global config variable set with get_config.
- vasca_cfg: dict
Dictionary with the VASCA configuration, typically from a YAML file
None
- vasca.vasca_pipe.keep_base_field(field)[source]¶
Remove field data that is not needed for further analysis to save memory
- field: vasca.field.BaseField
VASCA field
None
- vasca.vasca_pipe.run_field(obs_nr, field_id, rg, vasca_cfg)[source]¶
Run analysis on a single field
- obs_nrint
Observation number in the config file.
- field_idstr
Field ID of the field to run
- rgvasca.region.Region
Region of the VASCA pipeline.
- vasca_cfgdict
VASCA configuration
- vasca.field.BaseField
Modified field with results
- vasca.vasca_pipe.run_field_docs(obs_nr: int, field_id: str, rg: vasca.region.Region, vasca_cfg: dict) vasca.field.BaseField | None [source]¶
Run field-level analysis (docs-version)
- Par obs_nr:
Observation list index
- Par field_id:
Field ID
- Par rg:
VASCA region object from where the fields are loaded
- Par vasca_cfg:
Pipeline configuration
- vasca.vasca_pipe.run_cluster_fields(meanshift_cfg, tt_fd_src, tt_fd_det=None, cluster_coadd=False)[source]¶
Helper function to do clustering for passed sources or detections. The main purpose is to only keep the needed tables, to save memory usage
- meanshift_cfg: dict
Mean shift parameters
- tt_fd_src: astropy.table.Table
Table with sources
- tt_fd_det: astropy.table.Table
Table with detections
- cluster_coadd: bool
Clustering coadd sources?
- vasca.tables.TableCollection
Table collection with calculated clusters