LSST Applications g0b6bd0c080+a72a5dd7e6,g1182afd7b4+2a019aa3bb,g17e5ecfddb+2b8207f7de,g1d67935e3f+06cf436103,g38293774b4+ac198e9f13,g396055baef+6a2097e274,g3b44f30a73+6611e0205b,g480783c3b1+98f8679e14,g48ccf36440+89c08d0516,g4b93dc025c+98f8679e14,g5c4744a4d9+a302e8c7f0,g613e996a0d+e1c447f2e0,g6c8d09e9e7+25247a063c,g7271f0639c+98f8679e14,g7a9cd813b8+124095ede6,g9d27549199+a302e8c7f0,ga1cf026fa3+ac198e9f13,ga32aa97882+7403ac30ac,ga786bb30fb+7a139211af,gaa63f70f4e+9994eb9896,gabf319e997+ade567573c,gba47b54d5d+94dc90c3ea,gbec6a3398f+06cf436103,gc6308e37c7+07dd123edb,gc655b1545f+ade567573c,gcc9029db3c+ab229f5caf,gd01420fc67+06cf436103,gd877ba84e5+06cf436103,gdb4cecd868+6f279b5b48,ge2d134c3d5+cc4dbb2e3f,ge448b5faa6+86d1ceac1d,gecc7e12556+98f8679e14,gf3ee170dca+25247a063c,gf4ac96e456+ade567573c,gf9f5ea5b4d+ac198e9f13,gff490e6085+8c2580be5c,w.2022.27
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, config=None, *args, **kwargs) |
def | applyProperMotions (self, catalog, epoch) |
def | getMetadataBox (self, bbox, wcs, filterName, epoch=None, bboxToSpherePadding=100) |
def | joinMatchListWithCatalog (self, matchCat, sourceCat) |
Static Public Member Functions | |
def | makeMinimalSchema (filterNameList, *addCentroid=False, addIsPhotometric=False, addIsResolved=False, addIsVariable=False, coordErrDim=2, addProperMotion=False, properMotionErrDim=2, addParallax=False) |
def | getMetadataCircle (coord, radius, filterName, epoch=None) |
Public Attributes | |
config | |
Static Public Attributes | |
ConfigClass = LoadReferenceObjectsConfig | |
Base class for reference object loaders, to facilitate gen2/gen3 code sharing. Parameters ---------- config : `lsst.pex.config.Config` Configuration for the loader.
Definition at line 233 of file loadReferenceObjects.py.
def lsst.meas.algorithms.loadReferenceObjects.ReferenceObjectLoaderBase.__init__ | ( | self, | |
config = None , |
|||
* | args, | ||
** | kwargs | ||
) |
def lsst.meas.algorithms.loadReferenceObjects.ReferenceObjectLoaderBase.applyProperMotions | ( | self, | |
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 ---------- catalog : `lsst.afw.table.SimpleCatalog` Catalog of positions, containing at least these fields: - 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. If None, do not apply PM corrections or raise if ``config.requireProperMotion`` is True. Raises ------ RuntimeError Raised if ``config.requireProperMotion`` is set but we cannot apply the proper motion correction for some reason.
Definition at line 247 of file loadReferenceObjects.py.
def lsst.meas.algorithms.loadReferenceObjects.ReferenceObjectLoaderBase.getMetadataBox | ( | self, | |
bbox, | |||
wcs, | |||
filterName, | |||
epoch = None , |
|||
bboxToSpherePadding = 100 |
|||
) |
Return metadata about the load This metadata is used for reloading the catalog (e.g., for reconstituting a normalised match list). Parameters ---------- bbox : `lsst.geom.Box2I` or `lsst.geom.Box2D` Bounding box for the pixels. wcs : `lsst.afw.geom.SkyWcs` The WCS object associated with ``bbox``. filterName : `str` Name of the camera filter. epoch : `astropy.time.Time` or `None`, optional Epoch to which to correct proper motion and parallax, or `None` to not apply such corrections. bboxToSpherePadding : `int`, optional Padding in pixels to account for translating a set of corners into a spherical (convex) boundary that is certain to encompass the enitre area covered by the box. Returns ------- md : `lsst.daf.base.PropertyList` The metadata detailing the search parameters used for this dataset.
Definition at line 679 of file loadReferenceObjects.py.
|
static |
Return metadata about the reference catalog being loaded. This metadata is used for reloading the catalog (e.g. for reconstituting a normalized match list). Parameters ---------- coord : `lsst.geom.SpherePoint` ICRS center of the search region. radius : `lsst.geom.Angle` Radius of the search region. filterName : `str` Name of the camera filter. epoch : `astropy.time.Time` or `None`, optional Epoch to which to correct proper motion and parallax, or `None` to not apply such corrections. Returns ------- md : `lsst.daf.base.PropertyList` Metadata about the catalog.
Definition at line 647 of file loadReferenceObjects.py.
def lsst.meas.algorithms.loadReferenceObjects.ReferenceObjectLoaderBase.joinMatchListWithCatalog | ( | self, | |
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 ---------- matchCat : `lsst.afw.table.BaseCatalog` Unpersisted 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 720 of file loadReferenceObjects.py.
|
static |
Make a standard schema for reference object catalogs. Parameters ---------- filterNameList : `list` of `str` List of filter names. Used to create <filterName>_flux fields. addIsPhotometric : `bool` If True then add field "photometric". addIsResolved : `bool` If True then add field "resolved". addIsVariable : `bool` If True then add field "variable". coordErrDim : `int` Number of coord error fields; must be one of 0, 2, 3: - If 2 or 3: add fields "coord_raErr" and "coord_decErr". - If 3: also add field "coord_radecErr". addProperMotion : `bool` If True add fields "epoch", "pm_ra", "pm_dec" and "pm_flag". properMotionErrDim : `int` Number of proper motion error fields; must be one of 0, 2, 3; ignored if addProperMotion false: - If 2 or 3: add fields "pm_raErr" and "pm_decErr". - If 3: also add field "pm_radecErr". addParallax : `bool` If True add fields "epoch", "parallax", "parallaxErr" and "parallax_flag". Returns ------- schema : `lsst.afw.table.Schema` Schema for reference catalog, an `lsst.afw.table.SimpleCatalog`. Notes ----- Reference catalogs support additional covariances, such as covariance between RA and proper motion in declination, that are not supported by this method, but can be added after calling this method.
Definition at line 306 of file loadReferenceObjects.py.
lsst.meas.algorithms.loadReferenceObjects.ReferenceObjectLoaderBase.config |
Definition at line 245 of file loadReferenceObjects.py.
|
static |
Definition at line 242 of file loadReferenceObjects.py.