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

Public Member Functions

 __init__ (self, colFlux, colFluxErr=None, **kwargs)
 columns (self)
 name (self)
 hypot (cls, a, b)
 dn2flux (self, dn, fluxMag0)
 dn2mag (self, dn, fluxMag0)
 dn2fluxErr (self, dn, dnErr, fluxMag0, fluxMag0Err)
 dn2MagErr (self, dn, dnErr, fluxMag0, fluxMag0Err)
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

 vhypot = np.vectorize(self.hypot)
 col = colFlux
 colFluxErr = colFluxErr
int fluxMag0 = 1./np.power(10, -0.4*self.COADD_ZP)
int fluxMag0Err = 0.
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__)

Static Public Attributes

tuple AB_FLUX_SCALE = (0 * u.ABmag).to_value(u.nJy)
float LOG_AB_FLUX_SCALE = 12.56
float FIVE_OVER_2LOG10 = 1.085736204758129569
int COADD_ZP = 27

Additional Inherited Members

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)
 _func (self, df, dropna=True)
 _get_columnIndex (self, data)
 _get_data (self, data)
 _setLevels (self, df)
 _dropna (self, vals)
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

Base class for Object table calibrated fluxes and magnitudes.

Member Function Documentation

◆ columns()

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

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

Reimplemented in lsst.pipe.tasks.functors.NanoJanskyErr.

◆ dn2flux()

lsst.pipe.tasks.functors.Photometry.dn2flux ( self,
dn,
fluxMag0 )
Convert instrumental flux to nanojanskys.

◆ dn2fluxErr()

lsst.pipe.tasks.functors.Photometry.dn2fluxErr ( self,
dn,
dnErr,
fluxMag0,
fluxMag0Err )
Convert instrumental flux error to nanojanskys.

◆ dn2mag()

lsst.pipe.tasks.functors.Photometry.dn2mag ( self,
dn,
fluxMag0 )
Convert instrumental flux to AB magnitude.

◆ dn2MagErr()

lsst.pipe.tasks.functors.Photometry.dn2MagErr ( self,
dn,
dnErr,
fluxMag0,
fluxMag0Err )
Convert instrumental flux error to AB magnitude error.

◆ hypot()

lsst.pipe.tasks.functors.Photometry.hypot ( cls,
a,
b )
Compute sqrt(a^2 + b^2) without under/overflow.

◆ name()

lsst.pipe.tasks.functors.Photometry.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