make_dr2_config

Make a DR2 config file

Module Contents

Functions

cli()

get_field_data(→ pandas.Series)

Get field data from the RACS database

get_holography_path(→ pathlib.Path)

Get the path to the holography file for a given SBID

main(sbid, sbid_dir, processing_dir)

Main script

Attributes

RACSDB

RACSHOST

RACSPASS

RACSPORT

RACSUSER

make_dr2_config.cli()[source]
make_dr2_config.get_field_data(sbid: int) pandas.Series[source]

Get field data from the RACS database

Parameters:

sbid (int) – SBID

Returns:

Field data row

Return type:

pd.Series

make_dr2_config.get_holography_path(sbid: int) pathlib.Path[source]

Get the path to the holography file for a given SBID

Parameters:

sbid (int) – SBID

Raises:

ValueError – If SBID is not in the expected range

Returns:

Path to the holography file

Return type:

Path

make_dr2_config.main(sbid: int, sbid_dir: pathlib.Path, processing_dir: pathlib.Path)[source]

Main script

make_dr2_config.RACSDB = 'epoch_7'[source]
make_dr2_config.RACSHOST = '146.118.68.63'[source]
make_dr2_config.RACSPASS = 'racs-db-letmein'[source]
make_dr2_config.RACSPORT = '5433'[source]
make_dr2_config.RACSUSER = 'anonymous'[source]