LSSTApplications  11.0-22-g33de520,13.0+4,13.0+72,13.0-1-g46ffeb4+33,13.0-1-g47a359c+13,13.0-10-gbb93d41+29,13.0-12-g0251d74+22,13.0-12-gaf0c0ec+7,13.0-13-gd4b2922+21,13.0-14-g9415442+37,13.0-18-gc4ad422+6,13.0-2-g167564e+9,13.0-2-g50559bf,13.0-22-g3839dbb+22,13.0-26-g0f127ff+4,13.0-3-g3542790+8,13.0-3-g520d906+1,13.0-31-g48013df,13.0-4-g4231ded+8,13.0-42-g52e9227+2,13.0-5-g2a40766+1,13.0-52-g022e0bf+6,13.0-6-g08b5043,13.0-6-geef1ef2+6,13.0-8-gb7ca535,13.0-94-ga1c4440,master-gada5ecbbff+5,master-gf6b1fd7af3+2
LSSTDataManagementBasePackage
Classes | Functions | Variables
lsst.meas.astrom.createMatchMetadata Namespace Reference

Classes

class  MatchMetadata
 

Functions

def createMatchMetadata
 

Variables

list __all__ = ["MatchMetadata", "createMatchMetadata"]
 

Function Documentation

def lsst.meas.astrom.createMatchMetadata.createMatchMetadata (   exposure,
  border = 0 
)
Create metadata required for unpersisting a match list

@param[in] exposure  exposure for which to create metadata
@param[in] border    number of pixels by which to grow the bbox in all directions

@return metadata about the field (a daf_base PropertyList)

Definition at line 30 of file createMatchMetadata.py.

30 
31 def createMatchMetadata(exposure, border=0):
32  """Create metadata required for unpersisting a match list
33 
34  @param[in] exposure exposure for which to create metadata
35  @param[in] border number of pixels by which to grow the bbox in all directions
36 
37  @return metadata about the field (a daf_base PropertyList)
38  """
39  bboxd = Box2D(exposure.getBBox())
40  bboxd.grow(border)
41  wcs = getDistortedWcs(exposure.getInfo())
42  ctrCoord = wcs.pixelToSky(bboxd.getCenter()).toIcrs()
43  approxRadius = max(ctrCoord.angularSeparation(wcs.pixelToSky(pp).toIcrs()) for pp in bboxd.getCorners())
44  return MatchMetadata(ctrCoord, approxRadius, exposure.getFilter().getName())
int max
Definition: BoundedField.cc:99
def getDistortedWcs
Get a WCS from an exposureInfo, with distortion terms if possible.
Definition: utils.py:60
A floating-point coordinate rectangle geometry.
Definition: Box.h:266

Variable Documentation

list lsst.meas.astrom.createMatchMetadata.__all__ = ["MatchMetadata", "createMatchMetadata"]

Definition at line 3 of file createMatchMetadata.py.