LSST Applications
21.0.0+04719a4bac,21.0.0-1-ga51b5d4+f5e6047307,21.0.0-11-g2b59f77+a9c1acf22d,21.0.0-11-ga42c5b2+86977b0b17,21.0.0-12-gf4ce030+76814010d2,21.0.0-13-g1721dae+760e7a6536,21.0.0-13-g3a573fe+768d78a30a,21.0.0-15-g5a7caf0+f21cbc5713,21.0.0-16-g0fb55c1+b60e2d390c,21.0.0-19-g4cded4ca+71a93a33c0,21.0.0-2-g103fe59+bb20972958,21.0.0-2-g45278ab+04719a4bac,21.0.0-2-g5242d73+3ad5d60fb1,21.0.0-2-g7f82c8f+8babb168e8,21.0.0-2-g8f08a60+06509c8b61,21.0.0-2-g8faa9b5+616205b9df,21.0.0-2-ga326454+8babb168e8,21.0.0-2-gde069b7+5e4aea9c2f,21.0.0-2-gecfae73+1d3a86e577,21.0.0-2-gfc62afb+3ad5d60fb1,21.0.0-25-g1d57be3cd+e73869a214,21.0.0-3-g357aad2+ed88757d29,21.0.0-3-g4a4ce7f+3ad5d60fb1,21.0.0-3-g4be5c26+3ad5d60fb1,21.0.0-3-g65f322c+e0b24896a3,21.0.0-3-g7d9da8d+616205b9df,21.0.0-3-ge02ed75+a9c1acf22d,21.0.0-4-g591bb35+a9c1acf22d,21.0.0-4-g65b4814+b60e2d390c,21.0.0-4-gccdca77+0de219a2bc,21.0.0-4-ge8a399c+6c55c39e83,21.0.0-5-gd00fb1e+05fce91b99,21.0.0-6-gc675373+3ad5d60fb1,21.0.0-64-g1122c245+4fb2b8f86e,21.0.0-7-g04766d7+cd19d05db2,21.0.0-7-gdf92d54+04719a4bac,21.0.0-8-g5674e7b+d1bd76f71f,master-gac4afde19b+a9c1acf22d,w.2021.13
LSST Data Management Base Package
|
Classes | |
class | _FilterCatalog |
class | ReferenceObjectLoaderBase |
class | ReferenceObjectLoader |
class | LoadReferenceObjectsConfig |
class | LoadReferenceObjectsTask |
Functions | |
def | isOldFluxField (name, units) |
def | hasNanojanskyFluxUnits (schema) |
def | getFormatVersionFromRefCat (refCat) |
def | convertToNanojansky (catalog, log, doConvert=True) |
def | getRefFluxField (schema, filterName=None) |
def | getRefFluxKeys (schema, filterName=None) |
def | joinMatchListWithCatalogImpl (refObjLoader, matchCat, sourceCat) |
def | applyProperMotionsImpl (log, catalog, epoch) |
def lsst.meas.algorithms.loadReferenceObjects.applyProperMotionsImpl | ( | log, | |
catalog, | |||
epoch | |||
) |
Apply proper motion correction to a reference catalog. Adjust position and position error in the ``catalog`` for proper motion to the specified ``epoch``, modifying the catalog in place. Parameters ---------- log : `lsst.log.Log` Log object to write to. catalog : `lsst.afw.table.SimpleCatalog` Catalog of positions, containing: - Coordinates, retrieved by the table's coordinate key. - ``coord_raErr`` : Error in Right Ascension (rad). - ``coord_decErr`` : Error in Declination (rad). - ``pm_ra`` : Proper motion in Right Ascension (rad/yr, East positive) - ``pm_raErr`` : Error in ``pm_ra`` (rad/yr), optional. - ``pm_dec`` : Proper motion in Declination (rad/yr, North positive) - ``pm_decErr`` : Error in ``pm_dec`` (rad/yr), optional. - ``epoch`` : Mean epoch of object (an astropy.time.Time) epoch : `astropy.time.Time` Epoch to which to correct proper motion.
Definition at line 1442 of file loadReferenceObjects.py.
def lsst.meas.algorithms.loadReferenceObjects.convertToNanojansky | ( | catalog, | |
log, | |||
doConvert = True |
|||
) |
Convert fluxes in a catalog from jansky to nanojansky. Parameters ---------- catalog : `lsst.afw.table.SimpleCatalog` The catalog to convert. log : `lsst.log.Log` Log to send messages to. doConvert : `bool`, optional Return a converted catalog, or just identify the fields that need to be converted? This supports the "write=False" mode of `bin/convert_to_nJy.py`. Returns ------- catalog : `lsst.afw.table.SimpleCatalog` or None The converted catalog, or None if ``doConvert`` is False. Notes ----- Support for old units in reference catalogs will be removed after the release of late calendar year 2019. Use `meas_algorithms/bin/convert_to_nJy.py` to update your reference catalog.
Definition at line 86 of file loadReferenceObjects.py.
def lsst.meas.algorithms.loadReferenceObjects.getFormatVersionFromRefCat | ( | refCat | ) |
"Return the format version stored in a reference catalog header. Parameters ---------- refCat : `lsst.afw.table.SimpleCatalog` Reference catalog to inspect. Returns ------- version : `int` or `None` Format version integer, or `None` if the catalog has no metadata or the metadata does not include a "REFCAT_FORMAT_VERSION" key.
Definition at line 63 of file loadReferenceObjects.py.
def lsst.meas.algorithms.loadReferenceObjects.getRefFluxField | ( | schema, | |
filterName = None |
|||
) |
Get the name of a flux field from a schema. return the alias of "anyFilterMapsToThis", if present else if filterName is specified: return "*filterName*_camFlux" if present else return "*filterName*_flux" if present (camera filter name matches reference filter name) else throw RuntimeError else: return "camFlux", if present, else throw RuntimeError Parameters ---------- schema : `lsst.afw.table.Schema` Reference catalog schema. filterName : `str`, optional Name of camera filter. If not specified, ``defaultFilter`` needs to be set in the refcat loader config. Returns ------- fluxFieldName : `str` Name of flux field. Raises ------ RuntimeError If an appropriate field is not found.
Definition at line 759 of file loadReferenceObjects.py.
def lsst.meas.algorithms.loadReferenceObjects.getRefFluxKeys | ( | schema, | |
filterName = None |
|||
) |
Return keys for flux and flux error. Parameters ---------- schema : `lsst.afw.table.Schema` Reference catalog schema. filterName : `str` Name of camera filter. Returns ------- keys : `tuple` of (`lsst.afw.table.Key`, `lsst.afw.table.Key`) Two keys: - flux key - flux error key, if present, else None Raises ------ RuntimeError If flux field not found.
Definition at line 808 of file loadReferenceObjects.py.
def lsst.meas.algorithms.loadReferenceObjects.hasNanojanskyFluxUnits | ( | schema | ) |
Return True if the units of all flux and fluxErr are correct (nJy).
Definition at line 54 of file loadReferenceObjects.py.
def lsst.meas.algorithms.loadReferenceObjects.isOldFluxField | ( | name, | |
units | |||
) |
Return True if this name/units combination corresponds to an "old-style" reference catalog flux field.
Definition at line 43 of file loadReferenceObjects.py.
def lsst.meas.algorithms.loadReferenceObjects.joinMatchListWithCatalogImpl | ( | refObjLoader, | |
matchCat, | |||
sourceCat | |||
) |
Relink an unpersisted match list to sources and reference objects. A match list is persisted and unpersisted as a catalog of IDs produced by afw.table.packMatches(), with match metadata (as returned by the astrometry tasks) in the catalog's metadata attribute. This method converts such a match catalog into a match list, with links to source records and reference object records. Parameters ---------- refObjLoader Reference object loader to use in getting reference objects matchCat : `lsst.afw.table.BaseCatalog` Unperisted packed match list. ``matchCat.table.getMetadata()`` must contain match metadata, as returned by the astrometry tasks. sourceCat : `lsst.afw.table.SourceCatalog` Source catalog. As a side effect, the catalog will be sorted by ID. Returns ------- matchList : `lsst.afw.table.ReferenceMatchVector` Match list.
Definition at line 1381 of file loadReferenceObjects.py.