low_comm_tools.gleam_model

Attributes

ZERO_BEAM

Exceptions

FittingError

Common base class for all non-exit exceptions.

Classes

FittedSED

FluxDF

GleamRow

SkyModelDicts

Functions

_aocal_model_csv(→ list[str])

_aocal_model_skymodel(→ list[str])

_process_gleam_row(→ polars.DataFrame)

best_match_catalogue(→ GleamRow)

create_ao_cal_model_from_ms(→ list[str])

Create a model for the AO calibration from a measurement set.

create_sky_model_single(→ list[str])

Create a model for the AO calibration.

create_sky_model_wide(→ list[str])

fit_power_law(→ FittedSED | None)

get_catalogue_values(→ astropy.table.Table)

get_coord_from_ms(→ astropy.coordinates.SkyCoord)

get_freq_from_ms(→ astropy.units.Quantity)

get_parser(→ argparse.ArgumentParser)

get_time_from_ms(→ astropy.time.Time)

main(→ None)

make_flux_df(→ FluxDF)

make_sky_model_dicts(→ SkyModelDicts)

plot_fitted_sed(→ matplotlib.figure.Figure)

Module Contents

exception low_comm_tools.gleam_model.FittingError[source]

Bases: Exception

Common base class for all non-exit exceptions.

class low_comm_tools.gleam_model.FittedSED[source]

Bases: NamedTuple

fit_result: rm_lite.utils.fitting.FitResult[source]
plot: matplotlib.figure.Figure | None[source]
ref_freq_hz: float[source]
class low_comm_tools.gleam_model.FluxDF[source]

Bases: NamedTuple

gleam_row: GleamRow[source]
row_df: polars.DataFrame[source]
source_name: str[source]
class low_comm_tools.gleam_model.GleamRow[source]

Bases: NamedTuple

row: astropy.table.Row[source]
separation: astropy.units.Quantity[source]
size_deconv: radio_beam.Beam[source]
class low_comm_tools.gleam_model.SkyModelDicts[source]

Bases: NamedTuple

coord_dict: dict[str, astropy.coordinates.SkyCoord][source]
row_df_dict: dict[str, polars.DataFrame][source]
size_dict: dict[str, radio_beam.Beam][source]
low_comm_tools.gleam_model._aocal_model_csv(coord: astropy.coordinates.SkyCoord, sed: list[float], ref_freq_hz: float, size: radio_beam.Beam, source_name: str = 's0', include_header: bool = True) list[str][source]
low_comm_tools.gleam_model._aocal_model_skymodel(coord: astropy.coordinates.SkyCoord, sed: list[float], ref_freq_hz: float, size: radio_beam.Beam, source_name: str = 's0', include_header: bool = True) list[str][source]
low_comm_tools.gleam_model._process_gleam_row(gleam_row: GleamRow) polars.DataFrame[source]
low_comm_tools.gleam_model.best_match_catalogue(target: astropy.coordinates.SkyCoord, search_radius: astropy.units.Quantity, obs_time: astropy.time.Time) GleamRow[source]
low_comm_tools.gleam_model.create_ao_cal_model_from_ms(ms_path: str | pathlib.Path, output_path: str | pathlib.Path | None = None, model_type: str = 'csv', sky_type: str = 'single', ref_freq_hz: float | None = None, radius: astropy.units.Quantity = 1 * u.deg) list[str][source]

Create a model for the AO calibration from a measurement set.

low_comm_tools.gleam_model.create_sky_model_single(pointing: astropy.coordinates.SkyCoord, radius: astropy.units.Quantity, obs_time: astropy.time.Time, model_type: str = 'csv', ref_freq_hz: float | None = None) list[str][source]

Create a model for the AO calibration.

low_comm_tools.gleam_model.create_sky_model_wide(pointing: astropy.coordinates.SkyCoord, radius: astropy.units.Quantity, obs_time: astropy.time.Time, model_type: str = 'csv', ref_freq_hz: float | None = None) list[str][source]
low_comm_tools.gleam_model.fit_power_law(flux_df: polars.DataFrame, make_plot: bool = False, ref_freq_hz: float | None = None) FittedSED | None[source]
low_comm_tools.gleam_model.get_catalogue_values(target: astropy.coordinates.SkyCoord, radius: astropy.units.Quantity) astropy.table.Table[source]
low_comm_tools.gleam_model.get_coord_from_ms(ms_path: str | pathlib.Path, field: int = 0) astropy.coordinates.SkyCoord[source]
low_comm_tools.gleam_model.get_freq_from_ms(ms_path: str | pathlib.Path) astropy.units.Quantity[source]
low_comm_tools.gleam_model.get_parser(add_help: bool = True) argparse.ArgumentParser[source]
low_comm_tools.gleam_model.get_time_from_ms(ms_path: str | pathlib.Path) astropy.time.Time[source]
low_comm_tools.gleam_model.main() None[source]
low_comm_tools.gleam_model.make_flux_df(target: astropy.coordinates.SkyCoord, radius: astropy.units.Quantity, obs_time: astropy.time.Time) FluxDF[source]
low_comm_tools.gleam_model.make_sky_model_dicts(target: astropy.coordinates.SkyCoord, radius: astropy.units.Quantity) SkyModelDicts[source]
low_comm_tools.gleam_model.plot_fitted_sed(flux_df: polars.DataFrame, ref_freq_hz: float, fit_result: rm_lite.utils.fitting.FitResult) matplotlib.figure.Figure[source]
low_comm_tools.gleam_model.ZERO_BEAM[source]