LSSTApplications  17.0+29,17.0+44,17.0+45,17.0+47,17.0+6,17.0+9,17.0-1-g377950a+28,17.0.1-1-g114240f,17.0.1-1-g4d4fbc4+23,17.0.1-1-g55520dc+34,17.0.1-1-g5f4ed7e+37,17.0.1-1-g6dd7d69+5,17.0.1-1-g8de6c91+9,17.0.1-1-gb9095d2+5,17.0.1-1-ge9fec5e+3,17.0.1-1-gf4e0155+40,17.0.1-1-gfc65f5f+38,17.0.1-1-gfc6fb1f+16,17.0.1-11-ge9de802,17.0.1-13-g3ef030a,17.0.1-14-gd9e67d69,17.0.1-15-g1718489+9,17.0.1-16-g5e671147+1,17.0.1-17-gad3fdc4+4,17.0.1-2-g18434ef+12,17.0.1-2-g26618f5+17,17.0.1-2-g3bdf598+9,17.0.1-2-g54f2ebc+5,17.0.1-2-gf403422,17.0.1-24-g0055ebd3c+3,17.0.1-3-g7e86b59+27,17.0.1-3-g924bd39+2,17.0.1-3-gd08d533+27,17.0.1-4-g0ece6ab+7,17.0.1-6-g5ea9af5+1,17.0.1-6-gaad6eea+18,17.0.1-7-gc7c8782+10,17.0.1-8-g7a3d54a+24,w.2019.19
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.pipe.tasks.transformMeasurement.CoaddSrcTransformTask Class Reference

Transform measuremenents made on coadds to calibrated form. More...

Inheritance diagram for lsst.pipe.tasks.transformMeasurement.CoaddSrcTransformTask:
lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase

Public Member Functions

def coaddName (self)
 
def sourceType (self)
 
def calexpType (self)
 
def inputSchemaType (self)
 The Butler dataset type for the schema of the input source catalog. More...
 
def outputDataset (self)
 The Butler dataset type for the schema of the output catalog. More...
 
def measurementConfig (self)
 The configuration of the measurement operation used to generate the input catalog. More...
 
def runDataRef (self, dataRef)
 Transform the source catalog referred to by dataRef. More...
 

Public Attributes

 butler
 

Static Public Attributes

 RunnerClass = pipeBase.ButlerInitializedTaskRunner
 
 ConfigClass = RunTransformConfig
 
 sourceType = None
 
 calexpType = None
 

Detailed Description

Transform measuremenents made on coadds to calibrated form.

This is a specialization of RunTransformTaskBase which operates on measurements made on coadds. Refer to the parent documentation for details.

Definition at line 318 of file transformMeasurement.py.

Member Function Documentation

◆ calexpType()

def lsst.pipe.tasks.transformMeasurement.CoaddSrcTransformTask.calexpType (   self)

Definition at line 338 of file transformMeasurement.py.

338  def calexpType(self):
339  return self.coaddName + "Coadd_calexp"
340 

◆ coaddName()

def lsst.pipe.tasks.transformMeasurement.CoaddSrcTransformTask.coaddName (   self)

Definition at line 330 of file transformMeasurement.py.

330  def coaddName(self):
331  return self.butler.get(self.config.inputConfigType).coaddName
332 

◆ inputSchemaType()

def lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase.inputSchemaType (   self)
inherited

The Butler dataset type for the schema of the input source catalog.

By default, we append _schema to the input source type. Subclasses may customize if required.

Definition at line 209 of file transformMeasurement.py.

209  def inputSchemaType(self):
210  """!
211  The Butler dataset type for the schema of the input source catalog.
212 
213  By default, we append `_schema` to the input source type. Subclasses may customize
214  if required.
215  """
216  return self.sourceType + "_schema"
217 

◆ measurementConfig()

def lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase.measurementConfig (   self)
inherited

The configuration of the measurement operation used to generate the input catalog.

By default we look for measurement under the root configuration of the generating task. Subclasses may customize this (e.g. to calibrate.measurement) if required.

Definition at line 229 of file transformMeasurement.py.

229  def measurementConfig(self):
230  """!
231  The configuration of the measurement operation used to generate the input catalog.
232 
233  By default we look for `measurement` under the root configuration of the
234  generating task. Subclasses may customize this (e.g. to `calibrate.measurement`)
235  if required.
236  """
237  return self.butler.get(self.config.inputConfigType).measurement.value
238 

◆ outputDataset()

def lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase.outputDataset (   self)
inherited

The Butler dataset type for the schema of the output catalog.

By default, we prepend transformed_ to the input source type. Subclasses may customize if required.

Definition at line 219 of file transformMeasurement.py.

219  def outputDataset(self):
220  """!
221  The Butler dataset type for the schema of the output catalog.
222 
223  By default, we prepend `transformed_` to the input source type. Subclasses may
224  customize if required.
225  """
226  return 'transformed_' + self.sourceType
227 

◆ runDataRef()

def lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase.runDataRef (   self,
  dataRef 
)
inherited

Transform the source catalog referred to by dataRef.

The result is both returned and written as dataset type "transformed_" + the input source dataset type to the provided dataRef.

Parameters
[in]dataRefData reference for source catalog & calibrated exposure.
Returns
A BaseCatalog containing the transformed measurements.

Definition at line 247 of file transformMeasurement.py.

247  def runDataRef(self, dataRef):
248  """!Transform the source catalog referred to by dataRef.
249 
250  The result is both returned and written as dataset type "transformed_" + the input
251  source dataset type to the provided dataRef.
252 
253  @param[in] dataRef Data reference for source catalog & calibrated exposure.
254 
255  @returns A BaseCatalog containing the transformed measurements.
256  """
257  inputCat = dataRef.get(self.sourceType)
258  wcs = dataRef.get(self.calexpType).getWcs()
259  photoCalib = dataRef.get(self.calexpType).getPhotoCalib()
260  outputCat = self.transform.run(inputCat, wcs, photoCalib)
261  dataRef.put(outputCat, self.outputDataset)
262  return outputCat
263 
264 

◆ sourceType()

def lsst.pipe.tasks.transformMeasurement.CoaddSrcTransformTask.sourceType (   self)

Definition at line 334 of file transformMeasurement.py.

334  def sourceType(self):
335  return self.coaddName + "Coadd_meas"
336 

Member Data Documentation

◆ butler

lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase.butler
inherited

Definition at line 241 of file transformMeasurement.py.

◆ calexpType

lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase.calexpType = None
staticinherited

Definition at line 206 of file transformMeasurement.py.

◆ ConfigClass

lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase.ConfigClass = RunTransformConfig
staticinherited

Definition at line 194 of file transformMeasurement.py.

◆ RunnerClass

lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase.RunnerClass = pipeBase.ButlerInitializedTaskRunner
staticinherited

Definition at line 193 of file transformMeasurement.py.

◆ sourceType

lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase.sourceType = None
staticinherited

Definition at line 203 of file transformMeasurement.py.


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