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 | |
def | outputDataset (self) |
def | inputDataset (self) |
def | ConfigClass (self) |
def | __init__ (self, *args, **kwargs) |
def | runQuantum (self, butlerQC, inputRefs, outputRefs) |
def | runDataRef (self, dataRef) |
def | run (self, parq, funcs=None, dataId=None, band=None) |
def | getFunctors (self) |
def | getAnalysis (self, parq, funcs=None, band=None) |
def | transform (self, band, parq, funcs, dataId) |
def | write (self, df, parqRef) |
def | writeMetadata (self, dataRef) |
Public Attributes | |
funcs | |
Base class for transforming/standardizing a catalog by applying functors that convert units and apply calibrations. The purpose of this task is to perform a set of computations on an input `ParquetTable` dataset (such as `deepCoadd_obj`) and write the results to a new dataset (which needs to be declared in an `outputDataset` attribute). The calculations to be performed are defined in a YAML file that specifies a set of functors to be computed, provided as a `--functorFile` config parameter. An example of such a YAML file is the following: funcs: psfMag: functor: Mag args: - base_PsfFlux filt: HSC-G dataset: meas cmodel_magDiff: functor: MagDiff args: - modelfit_CModel - base_PsfFlux filt: HSC-G gauss_magDiff: functor: MagDiff args: - base_GaussianFlux - base_PsfFlux filt: HSC-G count: functor: Column args: - base_InputCount_value filt: HSC-G deconvolved_moments: functor: DeconvolvedMoments filt: HSC-G dataset: forced_src refFlags: - calib_psfUsed - merge_measurement_i - merge_measurement_r - merge_measurement_z - merge_measurement_y - merge_measurement_g - base_PixelFlags_flag_inexact_psfCenter - detect_isPrimary The names for each entry under "func" will become the names of columns in the output dataset. All the functors referenced are defined in `lsst.pipe.tasks.functors`. Positional arguments to be passed to each functor are in the `args` list, and any additional entries for each column other than "functor" or "args" (e.g., `'filt'`, `'dataset'`) are treated as keyword arguments to be passed to the functor initialization. The "flags" entry is the default shortcut for `Column` functors. All columns listed under "flags" will be copied to the output table untransformed. They can be of any datatype. In the special case of transforming a multi-level oject table with band and dataset indices (deepCoadd_obj), these will be taked from the `meas` dataset and exploded out per band. There are two special shortcuts that only apply when transforming multi-level Object (deepCoadd_obj) tables: - The "refFlags" entry is shortcut for `Column` functor taken from the `'ref'` dataset if transforming an ObjectTable. - The "forcedFlags" entry is shortcut for `Column` functors. taken from the ``forced_src`` dataset if transforming an ObjectTable. These are expanded out per band. This task uses the `lsst.pipe.tasks.postprocess.PostprocessAnalysis` object to organize and excecute the calculations.
Definition at line 558 of file postprocess.py.
def lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.__init__ | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Definition at line 652 of file postprocess.py.
def lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.ConfigClass | ( | self | ) |
Definition at line 649 of file postprocess.py.
def lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.getAnalysis | ( | self, | |
parq, | |||
funcs = None , |
|||
band = None |
|||
) |
Definition at line 712 of file postprocess.py.
def lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.getFunctors | ( | self | ) |
Definition at line 709 of file postprocess.py.
def lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.inputDataset | ( | self | ) |
Definition at line 645 of file postprocess.py.
def lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.outputDataset | ( | self | ) |
Definition at line 641 of file postprocess.py.
def lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.run | ( | self, | |
parq, | |||
funcs = None , |
|||
dataId = None , |
|||
band = None |
|||
) |
Do postprocessing calculations Takes a `ParquetTable` object and dataId, returns a dataframe with results of postprocessing calculations. Parameters ---------- parq : `lsst.pipe.tasks.parquetTable.ParquetTable` ParquetTable from which calculations are done. funcs : `lsst.pipe.tasks.functors.Functors` Functors to apply to the table's columns dataId : dict, optional Used to add a `patchId` column to the output dataframe. band : `str`, optional Filter band that is being processed. Returns ------ `pandas.DataFrame`
Definition at line 681 of file postprocess.py.
def lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.runDataRef | ( | self, | |
dataRef | |||
) |
Definition at line 672 of file postprocess.py.
def lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.runQuantum | ( | self, | |
butlerQC, | |||
inputRefs, | |||
outputRefs | |||
) |
Definition at line 662 of file postprocess.py.
def lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.transform | ( | self, | |
band, | |||
parq, | |||
funcs, | |||
dataId | |||
) |
Definition at line 718 of file postprocess.py.
def lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.write | ( | self, | |
df, | |||
parqRef | |||
) |
Definition at line 735 of file postprocess.py.
def lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.writeMetadata | ( | self, | |
dataRef | |||
) |
No metadata to write.
Definition at line 738 of file postprocess.py.
lsst.pipe.tasks.postprocess.TransformCatalogBaseTask.funcs |
Definition at line 657 of file postprocess.py.