Astrometry (craftutils.astrometry)

Convenience functions for astrometric purposes.

Functions

craftutils.astrometry.cat_columns(cat, f: str | None = None)
Parameters
cat

f: str | None = None

Returns

craftutils.astrometry.load_catalogue(cat_name: str, cat: str, ...)
craftutils.astrometry.jname(coord: SkyCoord, ...)
craftutils.astrometry.correct_gaia_to_epoch(gaia_cat, ...)
craftutils.astrometry.generate_astrometry_indices(cat_name, ...)
Parameters
cat_name

cat

output_file_prefix

unique_id_prefix

index_output_dir

fits_cat_output

add_path

p_lower

p_upper

Returns

craftutils.astrometry.attempt_skycoord(coord)
craftutils.astrometry.coord_string(coord: SkyCoord)
craftutils.astrometry.calculate_error_ellipse(frb: str | dict, ...)

Calculates the parameters of the uncertainty ellipse of an FRB, for use in plotting. :param frb: Either a string specifying the FRB, which must have a corresponding .yaml file in /param/FRBs, or a

dictionary containing the same information.

Parameters
error

String specifying the type of error calculation to use. Available options are ‘quadrature’, which provides the quadrature sum of statistical and systematic uncertainty; ‘systematic’; and ‘statistical’.

Returns

(a, b, theta) as floats in a tuple, in units of degrees.

craftutils.astrometry.offset_astrometry(...)

Offsets the astrometric solution of a fits HDU by the specified amounts. :param hdu: Astropy HDU object to be offset. :param offset_ra: Amount to offset Right Ascension by, in degrees. :param offset_dec: Amount to offset Declination by, in degrees. :param output: String specifying the output directory. :return:

craftutils.astrometry.find_nearest(coord: SkyCoord, search_coords)
craftutils.astrometry.sanitise_coord(cat: Table, dec_col: str)
craftutils.astrometry.match_catalogs(...)