ConvertReferenceCatalogConfig#
- class lsst.meas.algorithms.ConvertReferenceCatalogConfig(*args, **kw)#
Bases:
ConfigAttributes Summary
Unit of RA/Dec error fields (astropy.unit.Unit compatible) (
str, defaultNone)Configuration for reading the ingested data (
DatasetConfig, default<class 'lsst.meas.algorithms.convertReferenceCatalog.DatasetConfig'>)Name of Dec error column (
str, defaultNone)Name of Dec column (values in decimal degrees) (
str)Format of epoch column: any value accepted by astropy.time.Time, e.g. 'iso' or 'unix' (
str, defaultNone).Name of epoch column (
str, defaultNone)Scale of epoch column: any value accepted by astropy.time.Time, e.g. 'utc' (
str, defaultNone).Extra columns to add to the reference catalog.
Task to use to read the files.
Include epoch, proper motions, parallax, and covariances between sky coordinates, proper motion, and parallax in the schema.
Name of column to use as an identifier (optional).
Name of column stating if satisfactory for photometric calibration (optional).
Name of column stating if the object is resolved (optional).
Name of column stating if the object is measured to be variable (optional).
The values in the reference catalog are assumed to be in AB magnitudes.
A map of magnitude column name (key) to magnitude error column (value).
Multiprocessing manager to perform the actual conversion of values, file-by-file.
Number of python processes to use when ingesting.
Name of parallax error column (
str, defaultNone)Name of parallax column (
str, defaultNone)Scale factor by which to multiply parallax values to obtain units of milliarcsec (
float, default1.0)Name of proper motion Dec error column (
str, defaultNone)Name of proper motion Dec column (
str, defaultNone)Name of proper motion RA error column (
str, defaultNone)Name of proper motion RA column (
str, defaultNone)Scale factor by which to multiply proper motion values to obtain units of milliarcsec/year (
float, default1.0)Name of RA error column (
str, defaultNone)Name of RA column (values in decimal degrees) (
str)Methods Summary
Subclass hook for computing defaults.
validate()Validate the Config, raising an exception if invalid.
Attributes Documentation
- coord_err_unit#
Unit of RA/Dec error fields (astropy.unit.Unit compatible) (
str, defaultNone)
- dataset_config#
Configuration for reading the ingested data (
DatasetConfig, default<class 'lsst.meas.algorithms.convertReferenceCatalog.DatasetConfig'>)
- dec_err_name#
Name of Dec error column (
str, defaultNone)
- dec_name#
Name of Dec column (values in decimal degrees) (
str)
- epoch_format#
Format of epoch column: any value accepted by astropy.time.Time, e.g. ‘iso’ or ‘unix’ (
str, defaultNone)
- epoch_name#
Name of epoch column (
str, defaultNone)
- epoch_scale#
Scale of epoch column: any value accepted by astropy.time.Time, e.g. ‘utc’ (
str, defaultNone)
- extra_col_names#
Extra columns to add to the reference catalog. (
List, default[])
- file_reader#
Task to use to read the files. Default is to expect text files. (
ConfigurableInstance, default<class 'lsst.meas.algorithms.readTextCatalogTask.ReadTextCatalogConfig'>)
- full_position_information#
Include epoch, proper motions, parallax, and covariances between sky coordinates, proper motion, and parallax in the schema. If true, a custom
ConvertRefcatManagerclass must exist to compute the output covariances. (bool, defaultFalse)
- id_name#
Name of column to use as an identifier (optional). (
str, defaultNone)
- is_photometric_name#
Name of column stating if satisfactory for photometric calibration (optional). (
str, defaultNone)
- is_resolved_name#
Name of column stating if the object is resolved (optional). (
str, defaultNone)
- is_variable_name#
Name of column stating if the object is measured to be variable (optional). (
str, defaultNone)
- mag_column_list#
The values in the reference catalog are assumed to be in AB magnitudes. List of column names to use for photometric information. At least one entry is required. (
List)
- mag_err_column_map#
A map of magnitude column name (key) to magnitude error column (value). (
Dict, default{})
- manager#
Multiprocessing manager to perform the actual conversion of values, file-by-file. (
ConfigurableInstance, default<class 'lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManagerConfig'>)
- n_processes#
Number of python processes to use when ingesting. (
int, default1)
- parallax_err_name#
Name of parallax error column (
str, defaultNone)
- parallax_name#
Name of parallax column (
str, defaultNone)
- parallax_scale#
Scale factor by which to multiply parallax values to obtain units of milliarcsec (
float, default1.0)
- pm_dec_err_name#
Name of proper motion Dec error column (
str, defaultNone)
- pm_dec_name#
Name of proper motion Dec column (
str, defaultNone)
- pm_ra_err_name#
Name of proper motion RA error column (
str, defaultNone)
- pm_ra_name#
Name of proper motion RA column (
str, defaultNone)
- pm_scale#
Scale factor by which to multiply proper motion values to obtain units of milliarcsec/year (
float, default1.0)
- ra_err_name#
Name of RA error column (
str, defaultNone)
- ra_name#
Name of RA column (values in decimal degrees) (
str)
Methods Documentation
- setDefaults()#
Subclass hook for computing defaults.
Notes#
Derived
Configclasses that must compute defaults rather than using theFieldinstances’s defaults should do so here. To correctly use inherited defaults, implementations ofsetDefaultsmust call their base class’ssetDefaults.
- validate()#
Validate the Config, raising an exception if invalid.
Raises#
- lsst.pex.config.FieldValidationError
Raised if verification fails.
Notes#
The base class implementation performs type checks on all fields by calling their
validatemethods.Complex single-field validation can be defined by deriving new Field types. For convenience, some derived
lsst.pex.config.Field-types (ConfigFieldandConfigChoiceField) are defined inlsst.pex.configthat handle recursing into subconfigs.Inter-field relationships should only be checked in derived
Configclasses after calling this method, and base validation is complete.