LSSTApplications
17.0+103,17.0+11,17.0+61,18.0.0+13,18.0.0+25,18.0.0+5,18.0.0+52,18.0.0-4-g68ffd23,18.1.0-1-g0001055+8,18.1.0-1-g03d53ef+1,18.1.0-1-g1349e88+28,18.1.0-1-g2505f39+22,18.1.0-1-g380d4d4+27,18.1.0-1-g5315e5e+1,18.1.0-1-g5e4b7ea+10,18.1.0-1-g7e8fceb+1,18.1.0-1-g85f8cd4+23,18.1.0-1-g9a6769a+13,18.1.0-1-ga1a4c1a+22,18.1.0-1-gd55f500+17,18.1.0-12-g42eabe8e+10,18.1.0-14-gd04256d+15,18.1.0-16-g430f6a53+1,18.1.0-17-gd2166b6e4,18.1.0-18-gb5d19ff+1,18.1.0-2-gfbf3545+7,18.1.0-2-gfefb8b5+16,18.1.0-3-g52aa583+13,18.1.0-3-g62b5e86+14,18.1.0-3-g8f4a2b1+17,18.1.0-3-g9bc06b8+7,18.1.0-3-gb69f684+9,18.1.0-4-g1ee41a7+1,18.1.0-5-g6dbcb01+13,18.1.0-5-gc286bb7+3,18.1.0-6-g48bdcd3+2,18.1.0-6-gd05e160+9,18.1.0-7-gc4d902b+2,18.1.0-7-gebc0338+8,18.1.0-9-gae7190a+10,w.2019.38
LSSTDataManagementBasePackage
|
Load reference objects from astrometry.net index files. More...
Public Member Functions | |
def | __init__ (self, config=None, andConfig=None, kwargs) |
Create a LoadAstrometryNetObjectsTask. More... | |
def | loadSkyCircle (self, ctrCoord, radius, filterName=None, epoch=None, centroids=True) |
Load reference objects that overlap a circular sky region. More... | |
def | loadPixelBox (self, bbox, wcs, filterName=None, photoCalib=None, epoch=None) |
def | getMetadataBox (self, bbox, wcs, filterName=None, photoCalib=None, epoch=None) |
def | getMetadataCircle (self, coord, radius, filterName, photoCalib=None, epoch=None) |
def | joinMatchListWithCatalog (self, matchCat, sourceCat) |
def | applyProperMotions (self, catalog, epoch) |
Static Public Member Functions | |
def | makeMinimalSchema (filterNameList, addCentroid=False, addIsPhotometric=False, addIsResolved=False, addIsVariable=False, coordErrDim=2, addProperMotion=False, properMotionErrDim=2, addParallax=False) |
Public Attributes | |
andConfig | |
haveIndexFiles | |
multiInds | |
butler | |
Static Public Attributes | |
ConfigClass = LoadAstrometryNetObjectsConfig | |
Load reference objects from astrometry.net index files.
Load reference objects from astrometry.net index files.
Create a LoadAstrometryNetObjectsTask.
[in] | config | configuration (an instance of self.ConfigClass); if None use self.ConfigClass() |
[in] | andConfig | astrometry.net data config (an instance of AstromNetDataConfig, or None); if None then use andConfig.py in the astrometry_net_data product (which must be setup) |
[in] | kwargs | additional keyword arguments for pipe_base Task.__init__ |
RuntimeError | if andConfig is None and the configuration cannot be found, either because astrometry_net_data is not setup in eups or because the setup version does not include the file "andConfig.py" |
See LoadAstrometryNetObjectsConfig
LoadAstrometryNetObjectsTask is a subtask of AstrometryTask, which is called by PhotoCalTask. See A complete example of using PhotoCalTask.
LoadAstrometryNetObjectsTask does not support any debug variables.
Definition at line 20 of file loadAstrometryNetObjects.py.
def lsst.meas.extensions.astrometryNet.loadAstrometryNetObjects.LoadAstrometryNetObjectsTask.__init__ | ( | self, | |
config = None , |
|||
andConfig = None , |
|||
kwargs | |||
) |
Create a LoadAstrometryNetObjectsTask.
[in] | config | configuration (an instance of self.ConfigClass); if None use self.ConfigClass() |
[in] | andConfig | astrometry.net data config (an instance of AstromNetDataConfig, or None); if None then use andConfig.py in the astrometry_net_data product (which must be setup) |
[in] | kwargs | additional keyword arguments for pipe_base Task.__init__ |
RuntimeError | if andConfig is None and the configuration cannot be found, either because astrometry_net_data is not setup in eups or because the setup version does not include the file "andConfig.py" |
Definition at line 63 of file loadAstrometryNetObjects.py.
|
inherited |
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 catalong in place. Parameters ---------- 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` (optional) Epoch to which to correct proper motion and parallax, or None to not apply such corrections.
Definition at line 1361 of file loadReferenceObjects.py.
|
inherited |
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` Pixel bounding box. wcs : `lsst.afw.geom.SkyWcs` WCS; used to convert pixel positions to sky coordinates. filterName : `str` Name of camera filter, or `None` or `""` for the default filter. photoCalib : `lsst.afw.image.PhotoCalib` (optional) Calibration, or `None` if unknown. epoch : `astropy.time.Time` (optional) Epoch to which to correct proper motion and parallax, or None to not apply such corrections. Returns ------- metadata : lsst.daf.base.PropertyList Metadata about the load.
Definition at line 1269 of file loadReferenceObjects.py.
|
inherited |
Return metadata about the load. This metadata is used for reloading the catalog (e.g., for reconstituting a normalised 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 camera filter, or `None` or `""` for the default filter. photoCalib : `lsst.afw.image.PhotoCalib` (optional) Calibration, or `None` if unknown. epoch : `astropy.time.Time` (optional) Epoch to which to correct proper motion and parallax, or None to not apply such corrections. Returns ------- metadata : lsst.daf.base.PropertyList Metadata about the load
Definition at line 1298 of file loadReferenceObjects.py.
|
inherited |
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` 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 1334 of file loadReferenceObjects.py.
|
inherited |
Load reference objects that overlap a rectangular pixel region. Parameters ---------- bbox : `lsst.geom.Box2I` or `lsst.geom.Box2D` Bounding box for pixels. wcs : `lsst.afw.geom.SkyWcs` WCS; used to convert pixel positions to sky coordinates and vice-versa. filterName : `str` Name of filter, or `None` or `""` for the default filter. This is used for flux values in case we have flux limits (which are not yet implemented). photoCalib : `lsst.afw.image.PhotoCalib` (optional) Calibration, or `None` if unknown. epoch : `astropy.time.Time` (optional) Epoch to which to correct proper motion and parallax, or None to not apply such corrections. Returns ------- results : `lsst.pipe.base.Struct` A Struct containing the following fields: refCat : `lsst.afw.catalog.SimpleCatalog` A catalog of reference objects with the standard schema, as documented in the main doc string for `LoadReferenceObjects`. The catalog is guaranteed to be contiguous. fluxField : `str` Name of flux field for specified `filterName`. Notes ----- The search algorithm works by searching in a region in sky coordinates whose center is the center of the bbox and radius is large enough to just include all 4 corners of the bbox. Stars that lie outside the bbox are then trimmed from the list.
Definition at line 900 of file loadReferenceObjects.py.
def lsst.meas.extensions.astrometryNet.loadAstrometryNetObjects.LoadAstrometryNetObjectsTask.loadSkyCircle | ( | self, | |
ctrCoord, | |||
radius, | |||
filterName = None , |
|||
epoch = None , |
|||
centroids = True |
|||
) |
Load reference objects that overlap a circular sky region.
[in] | ctrCoord | center of search region (an afwGeom.Coord) |
[in] | radius | radius of search region (an geom.Angle) |
[in] | filterName | name of filter, or None for the default filter; used for flux values in case we have flux limits (which are not yet implemented) |
[in] | epoch | Epoch for proper motion and parallax correction (an astropy.time.Time), or None centroids : bool (optional) Ignored: a.net refcats always have centroid fields. |
No proper motion correction is made, since our astrometry.net catalogs typically don't support that, and even if they do they format is uncertain. Users interested in proper motion corrections should use the lsst.meas.algorithms.LoadIndexedReferenceObjectsTask or they will need to subclass and define how the proper motion correction is to be done.
Definition at line 81 of file loadAstrometryNetObjects.py.
|
staticinherited |
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 1086 of file loadReferenceObjects.py.
lsst.meas.extensions.astrometryNet.loadAstrometryNetObjects.LoadAstrometryNetObjectsTask.andConfig |
Definition at line 76 of file loadAstrometryNetObjects.py.
|
inherited |
Definition at line 897 of file loadReferenceObjects.py.
|
static |
Definition at line 61 of file loadAstrometryNetObjects.py.
lsst.meas.extensions.astrometryNet.loadAstrometryNetObjects.LoadAstrometryNetObjectsTask.haveIndexFiles |
Definition at line 77 of file loadAstrometryNetObjects.py.
lsst.meas.extensions.astrometryNet.loadAstrometryNetObjects.LoadAstrometryNetObjectsTask.multiInds |
Definition at line 181 of file loadAstrometryNetObjects.py.