Load reference objects from astrometry.net index files.
More...
|
def | __init__ (self, config=None, andConfig=None, kwargs) |
| Create a LoadAstrometryNetObjectsTask. More...
|
|
def | loadSkyCircle (self, ctrCoord, radius, filterName=None, epoch=None) |
| 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) |
|
|
def | makeMinimalSchema (filterNameList, addCentroid=True, addIsPhotometric=False, addIsResolved=False, addIsVariable=False, coordErrDim=2, addProperMotion=False, properMotionErrDim=2, addParallax=False, addParallaxErr=True) |
|
Load reference objects from astrometry.net index files.
Contents
Description
Load reference objects from astrometry.net index files.
Task initialisation
Create a LoadAstrometryNetObjectsTask.
- Parameters
-
[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__ |
- Exceptions
-
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" |
Invoking the Task
Configuration parameters
See LoadAstrometryNetObjectsConfig
A complete example of using
LoadAstrometryNetObjectsTask
LoadAstrometryNetObjectsTask is a subtask of AstrometryTask, which is called by PhotoCalTask. See A complete example of using PhotoCalTask.
Debug variables
LoadAstrometryNetObjectsTask does not support any debug variables.
Definition at line 24 of file loadAstrometryNetObjects.py.
◆ __init__()
def lsst.meas.extensions.astrometryNet.loadAstrometryNetObjects.LoadAstrometryNetObjectsTask.__init__ |
( |
|
self, |
|
|
|
config = None , |
|
|
|
andConfig = None , |
|
|
|
kwargs |
|
) |
| |
Create a LoadAstrometryNetObjectsTask.
- Parameters
-
[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__ |
- Exceptions
-
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 67 of file loadAstrometryNetObjects.py.
67 def __init__(self, config=None, andConfig=None, **kwargs):
68 """!Create a LoadAstrometryNetObjectsTask 70 @param[in] config configuration (an instance of self.ConfigClass); if None use self.ConfigClass() 71 @param[in] andConfig astrometry.net data config (an instance of AstromNetDataConfig, or None); 72 if None then use andConfig.py in the astrometry_net_data product (which must be setup) 73 @param[in] kwargs additional keyword arguments for pipe_base Task.\_\_init\_\_ 75 @throw RuntimeError if andConfig is None and the configuration cannot be found, 76 either because astrometry_net_data is not setup in eups 77 or because the setup version does not include the file "andConfig.py" 79 LoadReferenceObjectsTask.__init__(self, config=config, **kwargs)
80 self.andConfig = andConfig
81 self.haveIndexFiles =
False def __init__(self, minimum, dataRange, Q)
◆ applyProperMotions()
def lsst.meas.algorithms.loadReferenceObjects.LoadReferenceObjectsTask.applyProperMotions |
( |
|
self, |
|
|
|
catalog, |
|
|
|
epoch |
|
) |
| |
|
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 1362 of file loadReferenceObjects.py.
1362 def applyProperMotions(self, catalog, epoch):
1363 """Apply proper motion correction to a reference catalog. 1365 Adjust position and position error in the ``catalog`` 1366 for proper motion to the specified ``epoch``, 1367 modifying the catalong in place. 1371 catalog : `lsst.afw.table.SimpleCatalog` 1372 Catalog of positions, containing: 1374 - Coordinates, retrieved by the table's coordinate key. 1375 - ``coord_raErr`` : Error in Right Ascension (rad). 1376 - ``coord_decErr`` : Error in Declination (rad). 1377 - ``pm_ra`` : Proper motion in Right Ascension (rad/yr, 1379 - ``pm_raErr`` : Error in ``pm_ra`` (rad/yr), optional. 1380 - ``pm_dec`` : Proper motion in Declination (rad/yr, 1382 - ``pm_decErr`` : Error in ``pm_dec`` (rad/yr), optional. 1383 - ``epoch`` : Mean epoch of object (an astropy.time.Time) 1384 epoch : `astropy.time.Time` (optional) 1385 Epoch to which to correct proper motion and parallax, 1386 or None to not apply such corrections. 1388 if (
"epoch" not in catalog.schema
or "pm_ra" not in catalog.schema
or "pm_dec" not in catalog.schema):
1389 if self.config.requireProperMotion:
1390 raise RuntimeError(
"Proper motion correction required but not available from catalog")
1391 self.log.
warn(
"Proper motion correction not available from catalog")
def applyProperMotionsImpl(log, catalog, epoch)
◆ getMetadataBox()
def lsst.meas.algorithms.loadReferenceObjects.LoadReferenceObjectsTask.getMetadataBox |
( |
|
self, |
|
|
|
bbox, |
|
|
|
wcs, |
|
|
|
filterName = None , |
|
|
|
photoCalib = None , |
|
|
|
epoch = None |
|
) |
| |
|
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 1270 of file loadReferenceObjects.py.
1270 def getMetadataBox(self, bbox, wcs, filterName=None, photoCalib=None, epoch=None):
1271 """Return metadata about the load. 1273 This metadata is used for reloading the catalog (e.g., for 1274 reconstituting a normalised match list. 1278 bbox : `lsst.geom.Box2I` or `lsst.geom.Box2D` 1280 wcs : `lsst.afw.geom.SkyWcs` 1281 WCS; used to convert pixel positions to sky coordinates. 1283 Name of camera filter, or `None` or `""` for the default 1285 photoCalib : `lsst.afw.image.PhotoCalib` (optional) 1286 Calibration, or `None` if unknown. 1287 epoch : `astropy.time.Time` (optional) 1288 Epoch to which to correct proper motion and parallax, 1289 or None to not apply such corrections. 1293 metadata : lsst.daf.base.PropertyList 1294 Metadata about the load. 1296 circle = self._calculateCircle(bbox, wcs)
1297 return self.getMetadataCircle(circle.coord, circle.radius, filterName, photoCalib)
◆ getMetadataCircle()
def lsst.meas.algorithms.loadReferenceObjects.LoadReferenceObjectsTask.getMetadataCircle |
( |
|
self, |
|
|
|
coord, |
|
|
|
radius, |
|
|
|
filterName, |
|
|
|
photoCalib = None , |
|
|
|
epoch = None |
|
) |
| |
|
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 1299 of file loadReferenceObjects.py.
1299 def getMetadataCircle(self, coord, radius, filterName, photoCalib=None, epoch=None):
1300 """Return metadata about the load. 1302 This metadata is used for reloading the catalog (e.g., for 1303 reconstituting a normalised match list. 1307 coord : `lsst.geom.SpherePoint` 1308 ICRS center of the search region. 1309 radius : `lsst.geom.Angle` 1310 Radius of the search region. 1312 Name of camera filter, or `None` or `""` for the default 1314 photoCalib : `lsst.afw.image.PhotoCalib` (optional) 1315 Calibration, or `None` if unknown. 1316 epoch : `astropy.time.Time` (optional) 1317 Epoch to which to correct proper motion and parallax, 1318 or None to not apply such corrections. 1322 metadata : lsst.daf.base.PropertyList 1323 Metadata about the load 1326 md.add(
'RA', coord.getRa().asDegrees(),
'field center in degrees')
1327 md.add(
'DEC', coord.getDec().asDegrees(),
'field center in degrees')
1328 md.add(
'RADIUS', radius.asDegrees(),
'field radius in degrees, minimum')
1329 md.add(
'SMATCHV', 1,
'SourceMatchVector version number')
1330 filterName =
"UNKNOWN" if filterName
is None else str(filterName)
1331 md.add(
'FILTER', filterName,
'filter name for photometric data')
1332 md.add(
'EPOCH',
"NONE" if epoch
is None else epoch,
'Epoch (TAI MJD) for catalog')
◆ joinMatchListWithCatalog()
def lsst.meas.algorithms.loadReferenceObjects.LoadReferenceObjectsTask.joinMatchListWithCatalog |
( |
|
self, |
|
|
|
matchCat, |
|
|
|
sourceCat |
|
) |
| |
|
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 1335 of file loadReferenceObjects.py.
1335 def joinMatchListWithCatalog(self, matchCat, sourceCat):
1336 """Relink an unpersisted match list to sources and reference 1339 A match list is persisted and unpersisted as a catalog of IDs 1340 produced by afw.table.packMatches(), with match metadata 1341 (as returned by the astrometry tasks) in the catalog's metadata 1342 attribute. This method converts such a match catalog into a match 1343 list, with links to source records and reference object records. 1347 matchCat : `lsst.afw.table.BaseCatalog` 1348 Unperisted packed match list. 1349 ``matchCat.table.getMetadata()`` must contain match metadata, 1350 as returned by the astrometry tasks. 1351 sourceCat : `lsst.afw.table.SourceCatalog` 1352 Source catalog. As a side effect, the catalog will be sorted 1357 matchList : `lsst.afw.table.ReferenceMatchVector` def joinMatchListWithCatalogImpl(refObjLoader, matchCat, sourceCat)
◆ loadPixelBox()
def lsst.meas.algorithms.loadReferenceObjects.LoadReferenceObjectsTask.loadPixelBox |
( |
|
self, |
|
|
|
bbox, |
|
|
|
wcs, |
|
|
|
filterName = None , |
|
|
|
photoCalib = None , |
|
|
|
epoch = None |
|
) |
| |
|
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 901 of file loadReferenceObjects.py.
901 def loadPixelBox(self, bbox, wcs, filterName=None, photoCalib=None, epoch=None):
902 """Load reference objects that overlap a rectangular pixel region. 906 bbox : `lsst.geom.Box2I` or `lsst.geom.Box2D` 907 Bounding box for pixels. 908 wcs : `lsst.afw.geom.SkyWcs` 909 WCS; used to convert pixel positions to sky coordinates 912 Name of filter, or `None` or `""` for the default filter. 913 This is used for flux values in case we have flux limits 914 (which are not yet implemented). 915 photoCalib : `lsst.afw.image.PhotoCalib` (optional) 916 Calibration, or `None` if unknown. 917 epoch : `astropy.time.Time` (optional) 918 Epoch to which to correct proper motion and parallax, 919 or None to not apply such corrections. 923 results : `lsst.pipe.base.Struct` 924 A Struct containing the following fields: 925 refCat : `lsst.afw.catalog.SimpleCatalog` 926 A catalog of reference objects with the standard 927 schema, as documented in the main doc string for 928 `LoadReferenceObjects`. 929 The catalog is guaranteed to be contiguous. 931 Name of flux field for specified `filterName`. 935 The search algorithm works by searching in a region in sky 936 coordinates whose center is the center of the bbox and radius 937 is large enough to just include all 4 corners of the bbox. 938 Stars that lie outside the bbox are then trimmed from the list. 940 circle = self._calculateCircle(bbox, wcs)
943 self.log.
info(
"Loading reference objects using center %s and radius %s deg" %
944 (circle.coord, circle.radius.asDegrees()))
945 loadRes = self.loadSkyCircle(circle.coord, circle.radius, filterName)
946 refCat = loadRes.refCat
947 numFound = len(refCat)
950 refCat = self._trimToBBox(refCat=refCat, bbox=circle.bbox, wcs=wcs)
951 numTrimmed = numFound - len(refCat)
952 self.log.
debug(
"trimmed %d out-of-bbox objects, leaving %d", numTrimmed, len(refCat))
953 self.log.
info(
"Loaded %d reference objects", len(refCat))
956 if not refCat.isContiguous():
957 loadRes.refCat = refCat.copy(deep=
True)
◆ loadSkyCircle()
def lsst.meas.extensions.astrometryNet.loadAstrometryNetObjects.LoadAstrometryNetObjectsTask.loadSkyCircle |
( |
|
self, |
|
|
|
ctrCoord, |
|
|
|
radius, |
|
|
|
filterName = None , |
|
|
|
epoch = None |
|
) |
| |
Load reference objects that overlap a circular sky region.
- Parameters
-
[in] | ctrCoord | center of search region (an afwGeom.Coord) |
[in] | radius | radius of search region (an afwGeom.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 |
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.
- Returns
- an lsst.pipe.base.Struct containing:
- refCat a catalog of reference objects with the standard schema as documented in LoadReferenceObjects, including photometric, resolved and variable; hasCentroid is False for all objects.
- fluxField = name of flux field for specified filterName
Definition at line 85 of file loadAstrometryNetObjects.py.
85 def loadSkyCircle(self, ctrCoord, radius, filterName=None, epoch=None):
86 """!Load reference objects that overlap a circular sky region 88 @param[in] ctrCoord center of search region (an afwGeom.Coord) 89 @param[in] radius radius of search region (an afwGeom.Angle) 90 @param[in] filterName name of filter, or None for the default filter; 91 used for flux values in case we have flux limits (which are not yet implemented) 92 @param[in] epoch Epoch for proper motion and parallax correction 93 (an astropy.time.Time), or None 95 No proper motion correction is made, since our astrometry.net catalogs 96 typically don't support that, and even if they do they format is uncertain. 97 Users interested in proper motion corrections should use the 98 lsst.meas.algorithms.LoadIndexedReferenceObjectsTask or they will need to 99 subclass and define how the proper motion correction is to be done. 101 @return an lsst.pipe.base.Struct containing: 102 - refCat a catalog of reference objects with the 103 \link meas_algorithms_loadReferenceObjects_Schema standard schema \endlink 104 as documented in LoadReferenceObjects, including photometric, resolved and variable; 105 hasCentroid is False for all objects. 106 - fluxField = name of flux field for specified filterName 108 self._readIndexFiles()
113 for col, mcol
in self.andConfig.magColumnMap.items():
116 ecols.append(self.andConfig.magErrorColumnMap.get(col,
''))
117 margs = (names, mcols, ecols)
119 solver = self._getSolver()
122 multiInds = self._getMIndexesWithinRange(ctrCoord, radius)
135 self.andConfig.idColumn,
137 self.andConfig.starGalaxyColumn,
138 self.andConfig.variableColumn,
142 self.log.
debug(
"search for objects at %s with radius %s deg", ctrCoord, radius.asDegrees())
143 with LoadMultiIndexes(multiInds):
146 inds = tuple(mi[0]
for mi
in multiInds)
147 refCat = solver.getCatalog(inds, *fixedArgTuple)
149 self._addFluxAliases(schema=refCat.schema)
151 fluxField =
getRefFluxField(schema=refCat.schema, filterName=filterName)
155 if not refCat.isContiguous():
156 refCat = refCat.copy(deep=
True)
159 self.log.
warn(
"Loading A.net reference catalog with old style units in schema.")
160 self.log.
warn(
"A.net reference catalogs will not be supported in the future.")
161 self.log.
warn(
"See RFC-562 and RFC-575 for more details.")
164 self.log.
debug(
"found %d objects", len(refCat))
165 return pipeBase.Struct(
def convertToNanojansky(catalog, log, doConvert=True)
def getRefFluxField(schema, filterName=None)
◆ makeMinimalSchema()
def lsst.meas.algorithms.loadReferenceObjects.LoadReferenceObjectsTask.makeMinimalSchema |
( |
|
filterNameList, |
|
|
|
addCentroid = True , |
|
|
|
addIsPhotometric = False , |
|
|
|
addIsResolved = False , |
|
|
|
addIsVariable = False , |
|
|
|
coordErrDim = 2 , |
|
|
|
addProperMotion = False , |
|
|
|
properMotionErrDim = 2 , |
|
|
|
addParallax = False , |
|
|
|
addParallaxErr = True |
|
) |
| |
|
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".
addParallaxErr : `bool`
If True add field "parallaxErr"; ignored if addParallax false.
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 1084 of file loadReferenceObjects.py.
1084 addParallax=
False, addParallaxErr=
True):
1085 """Make a standard schema for reference object catalogs. 1089 filterNameList : `list` of `str` 1090 List of filter names. Used to create <filterName>_flux fields. 1091 addIsPhotometric : `bool` 1092 If True then add field "photometric". 1093 addIsResolved : `bool` 1094 If True then add field "resolved". 1095 addIsVariable : `bool` 1096 If True then add field "variable". 1098 Number of coord error fields; must be one of 0, 2, 3: 1100 - If 2 or 3: add fields "coord_raErr" and "coord_decErr". 1101 - If 3: also add field "coord_radecErr". 1102 addProperMotion : `bool` 1103 If True add fields "epoch", "pm_ra", "pm_dec" and "pm_flag". 1104 properMotionErrDim : `int` 1105 Number of proper motion error fields; must be one of 0, 2, 3; 1106 ignored if addProperMotion false: 1107 - If 2 or 3: add fields "pm_raErr" and "pm_decErr". 1108 - If 3: also add field "pm_radecErr". 1109 addParallax : `bool` 1110 If True add fields "epoch", "parallax", "parallaxErr" 1111 and "parallax_flag". 1112 addParallaxErr : `bool` 1113 If True add field "parallaxErr"; ignored if addParallax false. 1117 schema : `lsst.afw.table.Schema` 1118 Schema for reference catalog, an 1119 `lsst.afw.table.SimpleCatalog`. 1123 Reference catalogs support additional covariances, such as 1124 covariance between RA and proper motion in declination, 1125 that are not supported by this method, but can be added after 1126 calling this method. 1128 schema = afwTable.SimpleTable.makeMinimalSchema()
1130 afwTable.Point2DKey.addFields(
1133 "centroid on an exposure, if relevant",
1137 field=
"hasCentroid",
1139 doc=
"is position known?",
1141 for filterName
in filterNameList:
1143 field=
"%s_flux" % (filterName,),
1145 doc=
"flux in filter %s" % (filterName,),
1148 for filterName
in filterNameList:
1150 field=
"%s_fluxErr" % (filterName,),
1152 doc=
"flux uncertainty in filter %s" % (filterName,),
1155 if addIsPhotometric:
1157 field=
"photometric",
1159 doc=
"set if the object can be used for photometric calibration",
1165 doc=
"set if the object is spatially resolved",
1171 doc=
"set if the object has variable brightness",
1173 if coordErrDim
not in (0, 2, 3):
1174 raise ValueError(
"coordErrDim={}; must be (0, 2, 3)".
format(coordErrDim))
1176 afwTable.CovarianceMatrix2fKey.addFields(
1179 names=[
"ra",
"dec"],
1180 units=[
"rad",
"rad"],
1181 diagonalOnly=(coordErrDim == 2),
1184 if addProperMotion
or addParallax:
1188 doc=
"date of observation (TAI, MJD)",
1196 doc=
"proper motion in the right ascension direction = dra/dt * cos(dec)",
1202 doc=
"proper motion in the declination direction",
1205 if properMotionErrDim
not in (0, 2, 3):
1206 raise ValueError(
"properMotionErrDim={}; must be (0, 2, 3)".
format(properMotionErrDim))
1207 if properMotionErrDim > 0:
1208 afwTable.CovarianceMatrix2fKey.addFields(
1211 names=[
"ra",
"dec"],
1212 units=[
"rad/year",
"rad/year"],
1213 diagonalOnly=(properMotionErrDim == 2),
1218 doc=
"Set if proper motion or proper motion error is bad",
1230 field=
"parallaxErr",
1232 doc=
"uncertainty in parallax",
1236 field=
"parallax_flag",
1238 doc=
"Set if parallax or parallax error is bad",
def format(config, name=None, writeSourceLine=True, prefix="", verbose=False)
◆ andConfig
lsst.meas.extensions.astrometryNet.loadAstrometryNetObjects.LoadAstrometryNetObjectsTask.andConfig |
◆ butler
lsst.meas.algorithms.loadReferenceObjects.LoadReferenceObjectsTask.butler |
|
inherited |
◆ ConfigClass
◆ haveIndexFiles
lsst.meas.extensions.astrometryNet.loadAstrometryNetObjects.LoadAstrometryNetObjectsTask.haveIndexFiles |
◆ multiInds
lsst.meas.extensions.astrometryNet.loadAstrometryNetObjects.LoadAstrometryNetObjectsTask.multiInds |
The documentation for this class was generated from the following file:
- /j/snowflake/release/lsstsw/stack/Linux64/meas_extensions_astrometryNet/18.1.0/python/lsst/meas/extensions/astrometryNet/loadAstrometryNetObjects.py