cross_bones.catalogue¶
Attributes¶
Classes¶
Represent a per-beam ASKAP component catalogue |
|
Contains catalogue column names/keys. Defaults are aegean-based. |
|
Contains offsets in the RA and Dec directions in arcsec |
|
Generic keys for a table |
Functions¶
|
Estimate the central position of a set of positions by taking the |
|
Filter radio components out of a radio catalogue |
|
Attempt to extract the SBID and field name from a file path. |
|
Load a beam catalogue astropy table |
|
Load in all of the catalgues |
|
Create the sky-coordinates from a cataloguue table |
|
Module Contents¶
- class cross_bones.catalogue.Catalogue¶
Represent a per-beam ASKAP component catalogue
- center: astropy.coordinates.SkyCoord¶
Rough beam center derived from coordinates of componetns in catalogue
- path: pathlib.Path¶
Original path to the loaded catalogue
- table: astropy.table.Table¶
The table loaded
- table_keys: CatalogueKeys¶
Column names/keys with defaults from aegean component lists.
- class cross_bones.catalogue.CatalogueKeys¶
Contains catalogue column names/keys. Defaults are aegean-based.
- class cross_bones.catalogue.Offset¶
Contains offsets in the RA and Dec directions in arcsec
- class cross_bones.catalogue.TableKeys¶
Generic keys for a table
- cross_bones.catalogue.estimate_skycoord_centre(sky_positions: astropy.coordinates.SkyCoord, final_frame: str = 'fk5') astropy.coordinates.SkyCoord¶
Estimate the central position of a set of positions by taking the mean of sky-coordinates in their XYZ geocentric frame. Quick approach not intended for accuracy.
- Parameters:
sky_positions (SkyCoord) – A set of sky positions to get the rough center of
final_frame (str, optional) – The final frame to convert the mean position to. Defaults to “fk5”.
- Returns:
The rough center position
- Return type:
SkyCoord
- cross_bones.catalogue.filter_table(table: astropy.table.Table, table_keys: TableKeys, min_snr: float = 10.0, min_iso: float = 36.0) numpy.typing.NDArray[numpy.bool_]¶
Filter radio components out of a radio catalogue based on their distance to neighbouring components, compactness, and optionally minimum SNR.
- Parameters:
- Returns:
Boolean array of components to keep.
- Return type:
np.ndarray
- cross_bones.catalogue.guess_sbid_and_field_racs(catalogue_path: str | pathlib.Path) tuple[int, str]¶
Attempt to extract the SBID and field name from a file path. The filenames assumes some deliminted name scheme, with ‘.’ as the field marker.
The field name is the second item, and it taken as it. The SBID is taken as the first field, and requires a ‘SB’ prefix.
- Parameters:
catalogue_path (str | Path) – The file path to extract
- Raises:
RuntimeError – Raised when a path does not follow expectations
- Returns:
And SBID and field name
- Return type:
- cross_bones.catalogue.load_catalogue(catalogue_path: pathlib.Path, table_keys: TableKeys, idx: int | None = None, min_snr: float = 5.0, min_iso: float = 36.0) Catalogue¶
Load a beam catalogue astropy table
- Parameters:
catalogue_path (Path) – Path to load catalogue from
table_keys (TableKeys) – Table column keys
idx (int | None, optional) – Some optional identifier added to Catalogue. Defaults to None.
min_snr (float) – Minimum SNR of component. Default 10.
min_iso (float) – Minimum separation from a neighbour in arcsec. Default 30.
- Returns:
Loaded catalogue
- Return type:
- cross_bones.catalogue.load_catalogues(catalogue_paths: Paths, table_keys: TableKeys, min_snr: float = 5.0, min_iso: float = 36.0) Catalogues¶
Load in all of the catalgues
- cross_bones.catalogue.make_sky_coords(table: astropy.table.Table | Catalogue, ra_key: str = 'ra', dec_key: str = 'dec') astropy.coordinates.SkyCoord¶
Create the sky-coordinates from a cataloguue table
- cross_bones.catalogue.save_catalogue_shift_positions(catalogues: Catalogues, output_path: pathlib.Path | None = None) pathlib.Path¶
- cross_bones.catalogue.Catalogues¶
- cross_bones.catalogue.Paths¶