lsst.pipe.tasks gd5638573c2+392ae78cd2
Loading...
Searching...
No Matches
lsst.pipe.tasks.functors.Mag Class Reference
Inheritance diagram for lsst.pipe.tasks.functors.Mag:
lsst.pipe.tasks.functors.Functor lsst.pipe.tasks.functors.MagErr

Public Member Functions

 __init__ (self, col, **kwargs)
 columns (self)
 name (self)
Public Member Functions inherited from lsst.pipe.tasks.functors.Functor
 __init__ (self, filt=None, dataset=None, noDup=None)
 noDup (self)
 multilevelColumns (self, data, columnIndex=None, returnTuple=False)
 __call__ (self, data, dropna=False)
 difference (self, data1, data2, **kwargs)
 fail (self, df)
 shortname (self)

Public Attributes

 col = fluxName(col)
float fluxMag0 = 63095734448.0194
Public Attributes inherited from lsst.pipe.tasks.functors.Functor
 filt = filt
str dataset = dataset if dataset is not None else self._defaultDataset
 log = logging.getLogger(type(self).__name__)

Protected Member Functions

 _func (self, df)
Protected Member Functions inherited from lsst.pipe.tasks.functors.Functor
 _get_data_columnLevels (self, data, columnIndex=None)
 _get_data_columnLevelNames (self, data, columnIndex=None)
 _colsFromDict (self, colDict, columnIndex=None)
 _get_columnIndex (self, data)
 _get_data (self, data)
 _setLevels (self, df)
 _dropna (self, vals)

Additional Inherited Members

Protected Attributes inherited from lsst.pipe.tasks.functors.Functor
 _noDup = noDup
Static Protected Attributes inherited from lsst.pipe.tasks.functors.Functor
str _defaultDataset = 'ref'
tuple _dfLevels = ('column',)
bool _defaultNoDup = False

Detailed Description

Compute calibrated magnitude.

Returns the flux at mag=0.
The default ``fluxMag0`` is 63095734448.0194, which is default for HSC.
TO DO: This default should be made configurable in DM-21955.

This calculation hides warnings about invalid values and dividing by zero.

As with all functors, a ``dataset`` and ``filt`` kwarg should be provided
upon initialization.
Unlike the default `Functor`, however, the default dataset for a `Mag` is
``'meas'``, rather than ``'ref'``.

Parameters
----------
col : `str`
    Name of flux column from which to compute magnitude.
    Can be parseable by the `~lsst.pipe.tasks.functors.fluxName` function;
    that is, you can pass ``'modelfit_CModel'`` instead of
    ``'modelfit_CModel_instFlux'``, and it will understand.

Member Function Documentation

◆ _func()

lsst.pipe.tasks.functors.Mag._func ( self,
df )
protected

Reimplemented from lsst.pipe.tasks.functors.Functor.

◆ columns()

lsst.pipe.tasks.functors.Mag.columns ( self)
Columns required to perform calculation.

Reimplemented from lsst.pipe.tasks.functors.Functor.

Reimplemented in lsst.pipe.tasks.functors.MagErr.

◆ name()

lsst.pipe.tasks.functors.Mag.name ( self)

Reimplemented from lsst.pipe.tasks.functors.Functor.


The documentation for this class was generated from the following file:
  • python/lsst/pipe/tasks/functors.py