LSST Applications 24.1.0,g0b6bd0c080+e62dec11b2,g17e5ecfddb+2f99ec5bff,g1d67935e3f+aeba7d5376,g33b6a96d52+e24369602a,g38293774b4+ac198e9f13,g396055baef+a9fc9fe987,g3b44f30a73+6ed7a0bf37,g45a0052f0b+d5a0214cf8,g48ccf36440+89c08d0516,g5c4744a4d9+9e5e24d318,g6c8d09e9e7+60190443eb,g8b9e2231ea+b61c7debcc,g9c8be92ad0+d5a0214cf8,g9d27549199+9e5e24d318,ga1cf026fa3+ac198e9f13,ga32aa97882+7403ac30ac,ga786bb30fb+8c170280cc,gaa63f70f4e+a45a85e39e,gabf319e997+a153293d79,gb22ebf5633+adf3385ca5,gbec6a3398f+aeba7d5376,gc75b51116a+846e1f9efd,gca4adeb000+d5a0214cf8,gd01420fc67+aeba7d5376,gd82bb2a289+52e0a19ca3,gd877ba84e5+aeba7d5376,gd95cd18b76+8a093cac5b,gdb4cecd868+a5301bf5a0,gecc7e12556+d5a0214cf8,gf14d0188e3+a153293d79,gf3ee170dca+60190443eb,gf4ac96e456+a153293d79,gf51b12da82+3612beda7c,gf8609944d8+9adb1d6802,gf9f5ea5b4d+ac198e9f13,gff490e6085+9d6cf01b2b
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase Class Reference

More...

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

Public Member Functions

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 __init__ (self, *args, **kwargs)
 
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

Command line interface for TransformTask.

Contents

Description

Provides a command-line task which can be used to run TransformTask.

This is not a fully-fledged command line task: it requires specialization to a particular source type by defining the variables indicated below.

Task invocation

Definition at line 167 of file transformMeasurement.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase.__init__ (   self,
args,
**  kwargs 
)

Definition at line 241 of file transformMeasurement.py.

241 def __init__(self, *args, **kwargs):
242 pipeBase.CmdLineTask.__init__(self, *args, config=kwargs['config'], log=kwargs['log'])
243 self.butler = kwargs['butler']
244 self.makeSubtask('transform', measConfig=self.measurementConfig,
245 inputSchema=self.butler.get(self.inputSchemaType).schema,
246 outputDataset=self.outputDataset)
247

Member Function Documentation

◆ inputSchemaType()

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

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 211 of file transformMeasurement.py.

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

◆ measurementConfig()

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

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.

Reimplemented in lsst.pipe.tasks.transformMeasurement.SrcTransformTask.

Definition at line 231 of file transformMeasurement.py.

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

◆ outputDataset()

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

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 221 of file transformMeasurement.py.

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

◆ runDataRef()

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

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.

    @param[in] dataRef  Data reference for source catalog & calibrated exposure.

    @returns A BaseCatalog containing the transformed measurements.

Definition at line 249 of file transformMeasurement.py.

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

Member Data Documentation

◆ butler

lsst.pipe.tasks.transformMeasurement.RunTransformTaskBase.butler

Definition at line 243 of file transformMeasurement.py.

◆ calexpType

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

◆ ConfigClass

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

Definition at line 196 of file transformMeasurement.py.

◆ RunnerClass

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

Definition at line 195 of file transformMeasurement.py.

◆ sourceType

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

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