ConvertCatalogCoordinatesConfig#
- class lsst.meas.astrom.ConvertCatalogCoordinatesConfig(*args, **kw)#
Bases:
ConfigConfiguration for the MatchProbabilistic matcher.
Attributes Summary
The reference table column for the first spatial coordinate (usually x or ra).
The reference table column for the second spatial coordinate (usually y or dec).Units must match column_ref_coord1.
The target table column for the first spatial coordinate (usually x or ra).Units must match column_ref_coord1.
The target table column for the second spatial coordinate (usually y or dec).Units must match column_ref_coord2.
Multiplicative factor for reference catalog coordinates.If coords_spherical is true, this must be the number of degrees per unit increment of column_ref_coord[12].
Dict mapping sky coordinate columns to be converted to pixel columns.
Whether column_*_coord[12] are spherical coordinates (ra/dec) or not (pixel x/y).
Multiplicative factor for target catalog coordinates.If coords_spherical is true, this must be the number of degrees per unit increment of column_target_coord[12].
Magnitude zeropoint for reference catalog.
Whether to return converted coordinates for matching or only write them.
Methods Summary
format_catalogs(catalog_ref, catalog_target)Format matched catalogs that may require coordinate conversions.
Attributes Documentation
- column_ref_coord1#
The reference table column for the first spatial coordinate (usually x or ra). (
str, default'ra')
- column_ref_coord2#
The reference table column for the second spatial coordinate (usually y or dec).Units must match column_ref_coord1. (
str, default'dec')
- column_target_coord1#
The target table column for the first spatial coordinate (usually x or ra).Units must match column_ref_coord1. (
str, default'coord_ra')
- column_target_coord2#
The target table column for the second spatial coordinate (usually y or dec).Units must match column_ref_coord2. (
str, default'coord_dec')
- coords_ref_factor#
Multiplicative factor for reference catalog coordinates.If coords_spherical is true, this must be the number of degrees per unit increment of column_ref_coord[12]. Otherwise, it must convert the coordinate to the same units as the target coordinates. (
float, default1.0)
- coords_ref_to_convert#
Dict mapping sky coordinate columns to be converted to pixel columns. (
Dict, defaultNone)
- coords_spherical#
Whether column_*_coord[12] are spherical coordinates (ra/dec) or not (pixel x/y). (
bool, defaultTrue)
- coords_target_factor#
Multiplicative factor for target catalog coordinates.If coords_spherical is true, this must be the number of degrees per unit increment of column_target_coord[12]. Otherwise, it must convert the coordinate to the same units as the reference coordinates. (
float, default1.0)
- mag_zeropoint_ref#
Magnitude zeropoint for reference catalog. (
float, default31.4)
- return_converted_coords#
Whether to return converted coordinates for matching or only write them. (
float, defaultTrue)
Methods Documentation
- format_catalogs(catalog_ref: Table, catalog_target: Table, select_ref: array = None, select_target: array = None, radec_to_xy_func: Callable = None, **kwargs)#
Format matched catalogs that may require coordinate conversions.
Parameters#
- catalog_ref
astropy.table.Table A reference catalog for comparison to
catalog_target.- catalog_target
astropy.table.Table A target catalog with measurements for comparison to
catalog_ref.- select_ref
numpy.ndarray, (Nref,) A boolean array of len
catalog_ref, True for valid match candidates.- select_target
numpy.ndarray, (Ntarget,) A boolean array of len
catalog_target, True for valid match candidates.- radec_to_xy_func
typing.Callable Function taking equal-length ra, dec arrays and returning an ndarray of -
x: current parameter (float). -extra_args: additional arguments (dict).- kwargs
Additional keyword arguments to pass to radec_to_xy_func.
Returns#
- compcat_ref, compcat_target
ComparableCatalog Comparable catalogs corresponding to the input reference and target.
- catalog_ref