lsst.pipe.tasks gd5638573c2+392ae78cd2
Loading...
Searching...
No Matches
lsst.pipe.tasks.functors.LocalPhotometry Class Reference
Inheritance diagram for lsst.pipe.tasks.functors.LocalPhotometry:
lsst.pipe.tasks.functors.Functor lsst.pipe.tasks.functors.LocalDipoleMeanFlux lsst.pipe.tasks.functors.LocalNanojansky lsst.pipe.tasks.functors.LocalNanojanskyErr lsst.pipe.tasks.functors.LocalDipoleDiffFlux lsst.pipe.tasks.functors.LocalDipoleDiffFluxErr lsst.pipe.tasks.functors.LocalDipoleMeanFluxErr

Public Member Functions

 __init__ (self, instFluxCol, instFluxErrCol, photoCalibCol, photoCalibErrCol=None, **kwargs)
 instFluxToNanojansky (self, instFlux, localCalib)
 instFluxErrToNanojanskyErr (self, instFlux, instFluxErr, localCalib, localCalibErr=None)
 instFluxToMagnitude (self, instFlux, localCalib)
 instFluxErrToMagnitudeErr (self, instFlux, instFluxErr, localCalib, localCalibErr=None)
Public Member Functions inherited from lsst.pipe.tasks.functors.Functor
 __init__ (self, filt=None, dataset=None, noDup=None)
 noDup (self)
 columns (self)
 multilevelColumns (self, data, columnIndex=None, returnTuple=False)
 __call__ (self, data, dropna=False)
 difference (self, data1, data2, **kwargs)
 fail (self, df)
 name (self)
 shortname (self)

Public Attributes

 instFluxCol = instFluxCol
 instFluxErrCol = instFluxErrCol
 photoCalibCol = photoCalibCol
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__)
 name

Static Public Attributes

tuple logNJanskyToAB = (1 * u.nJy).to_value(u.ABmag)

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 calibrating the specified instrument flux column using
the local photometric calibration.

Parameters
----------
instFluxCol : `str`
    Name of the instrument flux column.
instFluxErrCol : `str`
    Name of the assocated error columns for ``instFluxCol``.
photoCalibCol : `str`
    Name of local calibration column.
photoCalibErrCol : `str`, optional
    Error associated with ``photoCalibCol``.  Ignored and deprecated; will
    be removed after v29.

See Also
--------
LocalNanojansky
LocalNanojanskyErr

Member Function Documentation

◆ instFluxErrToMagnitudeErr()

lsst.pipe.tasks.functors.LocalPhotometry.instFluxErrToMagnitudeErr ( self,
instFlux,
instFluxErr,
localCalib,
localCalibErr = None )
Convert instrument flux err to nanojanskys.

Parameters
----------
instFlux : `~numpy.ndarray` or `~pandas.Series`
    Array of instrument flux measurements.
instFluxErr : `~numpy.ndarray` or `~pandas.Series`
    Errors on associated ``instFlux`` values.
localCalib : `~numpy.ndarray` or `~pandas.Series`
    Array of local photometric calibration estimates.
localCalibErr : `~numpy.ndarray` or `~pandas.Series`, optional
    Errors on associated ``localCalib`` values.  Ignored and deprecated;
    will be removed after v29.

Returns
-------
calibMagErr: `~numpy.ndarray` or `~pandas.Series`
    Error on calibrated AB magnitudes.

◆ instFluxErrToNanojanskyErr()

lsst.pipe.tasks.functors.LocalPhotometry.instFluxErrToNanojanskyErr ( self,
instFlux,
instFluxErr,
localCalib,
localCalibErr = None )
Convert instrument flux to nanojanskys.

Parameters
----------
instFlux : `~numpy.ndarray` or `~pandas.Series`
    Array of instrument flux measurements.  Ignored (accepted for
    backwards compatibility and consistency with magnitude-error
    calculation methods).
instFluxErr : `~numpy.ndarray` or `~pandas.Series`
    Errors on associated ``instFlux`` values.
localCalib : `~numpy.ndarray` or `~pandas.Series`
    Array of local photometric calibration estimates.
localCalibErr : `~numpy.ndarray` or `~pandas.Series`, optional
    Errors on associated ``localCalib`` values.  Ignored and deprecated;
    will be removed after v29.

Returns
-------
calibFluxErr : `~numpy.ndarray` or `~pandas.Series`
    Errors on calibrated flux measurements.

◆ instFluxToMagnitude()

lsst.pipe.tasks.functors.LocalPhotometry.instFluxToMagnitude ( self,
instFlux,
localCalib )
Convert instrument flux to nanojanskys.

Parameters
----------
instFlux : `~numpy.ndarray` or `~pandas.Series`
    Array of instrument flux measurements.
localCalib : `~numpy.ndarray` or `~pandas.Series`
    Array of local photometric calibration estimates.

Returns
-------
calibMag : `~numpy.ndarray` or `~pandas.Series`
    Array of calibrated AB magnitudes.

◆ instFluxToNanojansky()

lsst.pipe.tasks.functors.LocalPhotometry.instFluxToNanojansky ( self,
instFlux,
localCalib )
Convert instrument flux to nanojanskys.

Parameters
----------
instFlux : `~numpy.ndarray` or `~pandas.Series`
    Array of instrument flux measurements.
localCalib : `~numpy.ndarray` or `~pandas.Series`
    Array of local photometric calibration estimates.

Returns
-------
calibFlux : `~numpy.ndarray` or `~pandas.Series`
    Array of calibrated flux measurements.

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