2 from .algorithmsLib
import CoaddBoundedField, CoaddBoundedFieldElement
4 __all__ = [
"makeCoaddApCorrMap",]
7 """Construct an ApCorrMap for a coadd
9 @param catalog: Table of coadd inputs (lsst.afw.table.ExposureCatalog)
10 @param coaddBox: Bounding box for coadd (lsst.afw.geom.Box2I)
11 @param coaddWcs: Wcs for coadd
12 @param weightFieldName: name of weight field in catalog
13 @return aperture corrections
18 weightKey = catalog.schema[weightFieldName].asKey()
20 apCorrMap = row.getApCorrMap()
23 weight = row.get(weightKey)
25 validPolygon = row.getValidPolygon()
26 for name, bf
in apCorrMap.items():
27 if not name
in everything:
33 for name, elements
in everything.iteritems():
34 apCorrMap.set(name, CoaddBoundedField(coaddBox, coaddWcs, elements))
Struct used to hold one Exposure's data in a CoaddBoundedField.
A thin wrapper around std::map to allow aperture corrections to be attached to Exposures.