n_const.obsparams

obsfile_parser(path)[source]

Observation parameters from alpaca style .obs file.

Parameters

path (PathLike) – Path to the .obs file.

Return type

Dict[str, Any]

Examples

>>> obsfile_parser('test/horizon.obs')
{'offset_Az': 0, ..., 'script': '200GHz/line_otf_car_rsky.alp'}
class ObsParams(**kwargs)[source]

Bases: DataClass

Parse observation parameters.

classmethod from_file(path)[source]

Parse toml file.

Parameters

path (PathLike) – Path to the parameter file.

Notes

All parameters declared in the toml file will be parsed. Table names are ignored.