Coverage for python/lsst/meas/algorithms/psfDeterminer.py : 89%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# # LSST Data Management System # # Copyright 2008-2017 AURA/LSST. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the LSST License Statement and # the GNU General Public License along with this program. If not, # see <https://www.lsstcorp.org/LegalNotices/>. #
"""Configuration that is likely to be shared by all PSF determiners
This is fairly sparse; more fields can be moved here once it is clear they are universal. """ doc="radius of the kernel to create, relative to the square root of the stellar quadrupole moments", dtype=float, default=10.0, ) doc="Minimum radius of the kernel", dtype=int, default=25, ) doc="Maximum radius of the kernel", dtype=int, default=45, )
"""!Base class for PSF determiners
Register all PSF determiners with the psfDeterminerRegistry using: psfDeterminerRegistry.register(name, class) """
"""Construct a PSF Determiner
@param[in] config an instance of pexConfig.Config that configures this algorithm @param[in,out] schema an instance of afw.table.Schema used for sources; passing a schema allows the determiner to reserve a flag field to mark stars used in PSF measurement, but some PSF determiners ignore this argument """ pipeBase.Task.__init__(self, config=config, **kwds)
"""Determine a PSF model
@param[in] exposure exposure containing the psf candidates (lsst.afw.image.Exposure) @param[in] psfCandidateList: a sequence of PSF candidates (each an lsst.meas.algorithms.PsfCandidate); typically obtained by detecting sources and then running them through a star selector @param[in,out] metadata a place to save interesting items
@return - psf: the fit PSF; a subclass of lsst.afw.detection.Psf - cellSet: the spatial cell set used to determine the PSF (lsst.afw.math.SpatialCellSet) """ raise NotImplementedError("BasePsfDeterminerTask is abstract, subclasses must override this method")
doc="A registry of PSF determiners (subclasses of BasePsfDeterminerTask)", ) |