LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
Classes | Functions | Variables
lsst.pipe.tasks.coaddBase Namespace Reference

Classes

class  CoaddBaseConfig
 
class  CoaddTaskRunner
 
class  CoaddBaseTask
 
class  SelectDataIdContainer
 

Functions

def getSkyInfo
 

Variables

 applyMosaicResults = None
 
list __all__ = ["CoaddBaseTask", "getSkyInfo"]
 

Function Documentation

def lsst.pipe.tasks.coaddBase.getSkyInfo (   coaddName,
  patchRef 
)
Return SkyMap, tract and patch

@param coaddName: coadd name; typically one of deep or goodSeeing
@param patchRef: data reference for sky map. Must include keys "tract" and "patch"

@return 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 afwGeom Box2I

Definition at line 212 of file coaddBase.py.

213 def getSkyInfo(coaddName, patchRef):
214  """Return SkyMap, tract and patch
215 
216  @param coaddName: coadd name; typically one of deep or goodSeeing
217  @param patchRef: data reference for sky map. Must include keys "tract" and "patch"
218 
219  @return pipe_base Struct containing:
220  - skyMap: sky map
221  - tractInfo: information for chosen tract of sky map
222  - patchInfo: information about chosen patch of tract
223  - wcs: WCS of tract
224  - bbox: outer bbox of patch, as an afwGeom Box2I
225  """
226  skyMap = patchRef.get(coaddName + "Coadd_skyMap")
227  tractId = patchRef.dataId["tract"]
228  tractInfo = skyMap[tractId]
229 
230  # patch format is "xIndex,yIndex"
231  patchIndex = tuple(int(i) for i in patchRef.dataId["patch"].split(","))
232  patchInfo = tractInfo.getPatchInfo(patchIndex)
233 
234  return pipeBase.Struct(
235  skyMap = skyMap,
236  tractInfo = tractInfo,
237  patchInfo = patchInfo,
238  wcs = tractInfo.getWcs(),
239  bbox = patchInfo.getOuterBBox(),
240  )

Variable Documentation

list lsst.pipe.tasks.coaddBase.__all__ = ["CoaddBaseTask", "getSkyInfo"]

Definition at line 40 of file coaddBase.py.

lsst.pipe.tasks.coaddBase.applyMosaicResults = None

Definition at line 38 of file coaddBase.py.