LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Public Member Functions | Static Public Attributes | List of all members
lsst.pipe.tasks.coaddBase.CoaddBaseTask Class Reference

Base class for coaddition. More...

Inheritance diagram for lsst.pipe.tasks.coaddBase.CoaddBaseTask:
lsst.pipe.tasks.makeCoaddTempExp.MakeCoaddTempExpTask

Public Member Functions

def __init__ (self, **kwargs)
 
def selectExposures (self, patchRef, skyInfo=None, selectDataList=[])
 Select exposures to coadd. More...
 
def getSkyInfo (self, patchRef)
 Use getSkyinfo to return the skyMap, tract and patch information, wcs and the outer bbox of the patch. More...
 
def getCoaddDatasetName (self, warpType="direct")
 
def getTempExpDatasetName (self, warpType="direct")
 
def getBadPixelMask (self)
 Convenience method to provide the bitmask from the mask plane names. More...
 

Static Public Attributes

 ConfigClass = CoaddBaseConfig
 
 RunnerClass = CoaddTaskRunner
 

Detailed Description

Base class for coaddition.

Subclasses must specify _DefaultName

Definition at line 141 of file coaddBase.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.pipe.tasks.coaddBase.CoaddBaseTask.__init__ (   self,
**  kwargs 
)

Definition at line 149 of file coaddBase.py.

149  def __init__(self, **kwargs):
150  super().__init__(**kwargs)
151  self.makeSubtask("select")
152  self.makeSubtask("inputRecorder")
153 

Member Function Documentation

◆ getBadPixelMask()

def lsst.pipe.tasks.coaddBase.CoaddBaseTask.getBadPixelMask (   self)

Convenience method to provide the bitmask from the mask plane names.

Definition at line 239 of file coaddBase.py.

239  def getBadPixelMask(self):
240  """!
241  @brief Convenience method to provide the bitmask from the mask plane names
242  """
243  return afwImage.Mask.getPlaneBitMask(self.config.badMaskPlanes)
244 
245 

◆ getCoaddDatasetName()

def lsst.pipe.tasks.coaddBase.CoaddBaseTask.getCoaddDatasetName (   self,
  warpType = "direct" 
)
Return coadd name for given warpType and task config

Parameters
----------
warpType : string
    Either 'direct' or 'psfMatched'

Returns
-------
CoaddDatasetName : `string`

Definition at line 190 of file coaddBase.py.

190  def getCoaddDatasetName(self, warpType="direct"):
191  """Return coadd name for given warpType and task config
192 
193  Parameters
194  ----------
195  warpType : string
196  Either 'direct' or 'psfMatched'
197 
198  Returns
199  -------
200  CoaddDatasetName : `string`
201  """
202  return self.config.coaddName + "Coadd" + makeCoaddSuffix(warpType)
203 
def makeCoaddSuffix(warpType="direct")
Definition: coaddBase.py:346

◆ getSkyInfo()

def lsst.pipe.tasks.coaddBase.CoaddBaseTask.getSkyInfo (   self,
  patchRef 
)

Use getSkyinfo to return the skyMap, tract and patch information, wcs and the outer bbox of the patch.

Parameters
[in]patchRefdata reference for sky map. Must include keys "tract" and "patch"
Returns
pipe_base Struct containing:
  • skyMap: sky map
  • tractInfo: information for chosen tract of sky map
  • patchInfo: information about chosen patch of tract
  • wcs: WCS of tract
  • bbox: outer bbox of patch, as an geom Box2I

Definition at line 174 of file coaddBase.py.

174  def getSkyInfo(self, patchRef):
175  """!
176  @brief Use @ref getSkyinfo to return the skyMap, tract and patch information, wcs and the outer bbox
177  of the patch.
178 
179  @param[in] patchRef data reference for sky map. Must include keys "tract" and "patch"
180 
181  @return pipe_base Struct containing:
182  - skyMap: sky map
183  - tractInfo: information for chosen tract of sky map
184  - patchInfo: information about chosen patch of tract
185  - wcs: WCS of tract
186  - bbox: outer bbox of patch, as an geom Box2I
187  """
188  return getSkyInfo(coaddName=self.config.coaddName, patchRef=patchRef)
189 
def getSkyInfo(coaddName, patchRef)
Return the SkyMap, tract and patch information, wcs, and outer bbox of the patch to be coadded.
Definition: coaddBase.py:271

◆ getTempExpDatasetName()

def lsst.pipe.tasks.coaddBase.CoaddBaseTask.getTempExpDatasetName (   self,
  warpType = "direct" 
)
Return warp name for given warpType and task config

Parameters
----------
warpType : string
    Either 'direct' or 'psfMatched'

Returns
-------
WarpDatasetName : `string`

Definition at line 204 of file coaddBase.py.

204  def getTempExpDatasetName(self, warpType="direct"):
205  """Return warp name for given warpType and task config
206 
207  Parameters
208  ----------
209  warpType : string
210  Either 'direct' or 'psfMatched'
211 
212  Returns
213  -------
214  WarpDatasetName : `string`
215  """
216  return self.config.coaddName + "Coadd_" + warpType + "Warp"
217 

◆ selectExposures()

def lsst.pipe.tasks.coaddBase.CoaddBaseTask.selectExposures (   self,
  patchRef,
  skyInfo = None,
  selectDataList = [] 
)

Select exposures to coadd.

Get the corners of the bbox supplied in skyInfo using geom::Box2D and convert the pixel positions of the bbox corners to sky coordinates using skyInfo.wcs.pixelToSky. Use the WcsSelectImagesTask to select exposures that lie inside the patch indicated by the dataRef.

Parameters
[in]patchRefdata reference for sky map patch. Must include keys "tract", "patch", plus the camera-specific filter key (e.g. "filter" or "band")
[in]skyInfogeometry for the patch; output from getSkyInfo
Returns
a list of science exposures to coadd, as butler data references

Definition at line 154 of file coaddBase.py.

154  def selectExposures(self, patchRef, skyInfo=None, selectDataList=[]):
155  """!
156  @brief Select exposures to coadd
157 
158  Get the corners of the bbox supplied in skyInfo using @ref geom.Box2D and convert the pixel
159  positions of the bbox corners to sky coordinates using @ref skyInfo.wcs.pixelToSky. Use the
160  @ref WcsSelectImagesTask_ "WcsSelectImagesTask" to select exposures that lie inside the patch
161  indicated by the dataRef.
162 
163  @param[in] patchRef data reference for sky map patch. Must include keys "tract", "patch",
164  plus the camera-specific filter key (e.g. "filter" or "band")
165  @param[in] skyInfo geometry for the patch; output from getSkyInfo
166  @return a list of science exposures to coadd, as butler data references
167  """
168  if skyInfo is None:
169  skyInfo = self.getSkyInfo(patchRef)
170  cornerPosList = geom.Box2D(skyInfo.bbox).getCorners()
171  coordList = [skyInfo.wcs.pixelToSky(pos) for pos in cornerPosList]
172  return self.select.runDataRef(patchRef, coordList, selectDataList=selectDataList).dataRefList
173 
A floating-point coordinate rectangle geometry.
Definition: Box.h:413

Member Data Documentation

◆ ConfigClass

lsst.pipe.tasks.coaddBase.CoaddBaseTask.ConfigClass = CoaddBaseConfig
static

Definition at line 146 of file coaddBase.py.

◆ RunnerClass

lsst.pipe.tasks.coaddBase.CoaddBaseTask.RunnerClass = CoaddTaskRunner
static

Definition at line 147 of file coaddBase.py.


The documentation for this class was generated from the following file: