LSST Applications g0b6bd0c080+a72a5dd7e6,g1182afd7b4+2a019aa3bb,g17e5ecfddb+2b8207f7de,g1d67935e3f+06cf436103,g38293774b4+ac198e9f13,g396055baef+6a2097e274,g3b44f30a73+6611e0205b,g480783c3b1+98f8679e14,g48ccf36440+89c08d0516,g4b93dc025c+98f8679e14,g5c4744a4d9+a302e8c7f0,g613e996a0d+e1c447f2e0,g6c8d09e9e7+25247a063c,g7271f0639c+98f8679e14,g7a9cd813b8+124095ede6,g9d27549199+a302e8c7f0,ga1cf026fa3+ac198e9f13,ga32aa97882+7403ac30ac,ga786bb30fb+7a139211af,gaa63f70f4e+9994eb9896,gabf319e997+ade567573c,gba47b54d5d+94dc90c3ea,gbec6a3398f+06cf436103,gc6308e37c7+07dd123edb,gc655b1545f+ade567573c,gcc9029db3c+ab229f5caf,gd01420fc67+06cf436103,gd877ba84e5+06cf436103,gdb4cecd868+6f279b5b48,ge2d134c3d5+cc4dbb2e3f,ge448b5faa6+86d1ceac1d,gecc7e12556+98f8679e14,gf3ee170dca+25247a063c,gf4ac96e456+ade567573c,gf9f5ea5b4d+ac198e9f13,gff490e6085+8c2580be5c,w.2022.27
LSST Data Management Base Package
Classes | Functions
lsst.pipe.tasks.multiBandUtils Namespace Reference

Classes

class  CullPeaksConfig
  More...
 
class  MergeSourcesRunner
 

Functions

def makeMergeArgumentParser (name, dataset)
 Create a suitable ArgumentParser. More...
 
def getInputSchema (task, butler=None, schema=None)
 Obtain the input schema either directly or froma butler reference. More...
 
def readCatalog (task, patchRef)
 Read input catalog. More...
 

Function Documentation

◆ getInputSchema()

def lsst.pipe.tasks.multiBandUtils.getInputSchema (   task,
  butler = None,
  schema = None 
)

Obtain the input schema either directly or froma butler reference.

Parameters
[in]taskthe task whose input schema is desired
[in]butlerbutler reference to obtain the input schema from
[in]schemathe input schema

Definition at line 147 of file multiBandUtils.py.

147def getInputSchema(task, butler=None, schema=None):
148 """!
149 @brief Obtain the input schema either directly or froma butler reference.
150
151 @param[in] task the task whose input schema is desired
152 @param[in] butler butler reference to obtain the input schema from
153 @param[in] schema the input schema
154 """
155 if schema is None:
156 assert butler is not None, "Neither butler nor schema specified"
157 schema = butler.get(task.config.coaddName + "Coadd_" + task.inputDataset + "_schema",
158 immediate=True).schema
159 return schema
160
161
def getInputSchema(task, butler=None, schema=None)
Obtain the input schema either directly or froma butler reference.

◆ makeMergeArgumentParser()

def lsst.pipe.tasks.multiBandUtils.makeMergeArgumentParser (   name,
  dataset 
)

Create a suitable ArgumentParser.

We will use the ArgumentParser to get a provide a list of data references for patches; the RunnerClass will sort them into lists of data references for the same patch

Definition at line 132 of file multiBandUtils.py.

132def makeMergeArgumentParser(name, dataset):
133 """!
134 @brief Create a suitable ArgumentParser.
135
136 We will use the ArgumentParser to get a provide a list of data
137 references for patches; the RunnerClass will sort them into lists
138 of data references for the same patch
139 """
140 parser = ArgumentParser(name)
141 parser.add_id_argument("--id", "deepCoadd_" + dataset,
142 ContainerClass=ExistingCoaddDataIdContainer,
143 help="data ID, e.g. --id tract=12345 patch=1,2 filter=g^r^i")
144 return parser
145
146
def makeMergeArgumentParser(name, dataset)
Create a suitable ArgumentParser.

◆ readCatalog()

def lsst.pipe.tasks.multiBandUtils.readCatalog (   task,
  patchRef 
)

Read input catalog.

We read the input dataset provided by the 'inputDataset' class variable.

Parameters
[in]taskthe task whose input catalog is desired
[in]patchRefdata reference for patch
Returns
tuple consisting of the band name and the catalog

Definition at line 162 of file multiBandUtils.py.

162def readCatalog(task, patchRef):
163 """!
164 @brief Read input catalog.
165
166 We read the input dataset provided by the 'inputDataset'
167 class variable.
168
169 @param[in] task the task whose input catalog is desired
170 @param[in] patchRef data reference for patch
171 @return tuple consisting of the band name and the catalog
172 """
173 band = patchRef.get(task.config.coaddName + "Coadd_filterLabel", immediate=True).bandLabel
174 catalog = patchRef.get(task.config.coaddName + "Coadd_" + task.inputDataset, immediate=True)
175 task.log.info("Read %d sources for band %s: %s", len(catalog), band, patchRef.dataId)
176 return band, catalog
177
178
def readCatalog(task, patchRef)
Read input catalog.