-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Numpydoc conversion of meas_algorithms through makeCoaddApCorrMap.py
- Loading branch information
Showing
6 changed files
with
174 additions
and
168 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
doc/lsst.meas.algorithms/tasks/lsst.meas.algorithms.IngestGaiaReferenceTask.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.. lsst-task-topic:: lsst.meas.algorithms.IngestGaiaReferenceTask | ||
| ||
####################### | ||
IngestGaiaReferenceTask | ||
####################### | ||
| ||
``IngestGaiaReferenceTask`` acts as a special-cased version of the refcat ingester for Gaia DR2. | ||
| ||
.. _lsst.meas.algorithms.IngestGaiaReferenceTask-api: | ||
| ||
Python API summary | ||
================== | ||
| ||
.. lsst-task-api-summary:: lsst.meas.algorithms.IngestGaiaReferenceTask | ||
| ||
.. _lsst.meas.algorithms.IngestGaiaReferenceTask-subtasks: | ||
| ||
Retargetable subtasks | ||
===================== | ||
| ||
.. lsst-task-config-subtasks:: lsst.meas.algorithms.IngestGaiaReferenceTask | ||
| ||
.. _lsst.meas.algorithms.IngestGaiaReferenceTask-configs: | ||
| ||
Configuration fields | ||
==================== | ||
| ||
.. lsst-task-config-fields:: lsst.meas.algorithms.IngestGaiaReferenceTask | ||
| ||
.. _lsst.meas.algorithms.IngestGaiaReferenceTask-examples: | ||
|
39 changes: 39 additions & 0 deletions
39
doc/lsst.meas.algorithms/tasks/lsst.meas.algorithms.InstallGaussianPsfTask.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.. lsst-task-topic:: lsst.meas.algorithms.InstallGaussianPsfTask | ||
| ||
###################### | ||
InstallGaussianPsfTask | ||
###################### | ||
| ||
``InstallGaussianPsfTask`` installs a Gaussian PSF model in an exposure. | ||
| ||
.. _lsst.meas.algorithms.InstallGaussianPsfTask-summary: | ||
| ||
Processing summary | ||
================== | ||
| ||
``InstallGaussianPsfTask`` installs a Gaussian PSF model in an exposure, creating a new PSF with the same sigma and width if a PSF already exists for the exposure. If there is not a PSF model for the exposure, the sigma and width are taken from the config. | ||
.. _lsst.meas.algorithms.InstallGaussianPsfTask-api: | ||
| ||
Python API summary | ||
================== | ||
| ||
.. lsst-task-api-summary:: lsst.meas.algorithms.InstallGaussianPsfTask | ||
| ||
.. _lsst.meas.algorithms.InstallGaussianPsfTask-examples: | ||
| ||
Examples | ||
======== | ||
| ||
.. code-block:: python | ||
from lsst.afw.image import ExposureF | ||
from lsst.meas.algorithms.installGaussianPsf import InstallGaussianPsfTask, FwhmPerSigma | ||
exposure = ExposureF(100, 100) | ||
task = InstallGaussianPsfTask() | ||
task.run(exposure=exposure) | ||
# This particular exposure had no PSF model to begin with, so the new PSF model | ||
# uses the config's FWHM. However, measured FWHM is based on the truncated | ||
# PSF image, so it does not exactly match the input | ||
measFwhm = exposure.getPsf().computeShape().getDeterminantRadius() * FwhmPerSigma | ||
assert abs(measFwhm - task.config.fwhm) < 1e-3 |
78 changes: 78 additions & 0 deletions
78
doc/lsst.meas.algorithms/tasks/lsst.meas.algorithms.LoadReferenceObjectsTask.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
.. lsst-task-topic:: lsst.meas.algorithms.LoadReferenceObjectsTask | ||
| ||
######################## | ||
LoadReferenceObjectsTask | ||
######################## | ||
|
||
Implementations must subclass this class, override the loadSkyCircle method, and will typically override the value of ConfigClass with a task-specific config class. | ||
| ||
``LoadReferenceObjectsTask`` acts as an abstract base class for tasks that load objects from a reference catalog in a particluar region of sky. | ||
| ||
.. _lsst.meas.algorithms.LoadReferenceObjectsTask-api: | ||
| ||
Python API summary | ||
================== | ||
| ||
.. lsst-task-api-summary:: lsst.meas.algorithms.LoadReferenceObjectsTask | ||
| ||
.. _lsst.meas.algorithms.LoadReferenceObjectsTask-subtasks: | ||
| ||
Retargetable subtasks | ||
===================== | ||
| ||
.. lsst-task-config-subtasks:: lsst.meas.algorithms.LoadReferenceObjectsTask | ||
| ||
.. _lsst.meas.algorithms.LoadReferenceObjectsTask-configs: | ||
| ||
Configuration fields | ||
==================== | ||
| ||
.. lsst-task-config-fields:: lsst.meas.algorithms.LoadReferenceObjectsTask | ||
| ||
.. _lsst.meas.algorithms.LoadReferenceObjectsTask-indepth | ||
In Depth | ||
======== | ||
|
||
Catalog Schema | ||
-------------- | ||
|
||
- ``coord``: ICRS position of star on sky (an ``lsst.geom.SpherePoint``) | ||
- ``centroid``: position of star on an exposure, if relevant (an ``lsst.afw.Point2D``) | ||
- ``hasCentroid``: is centroid usable? (a Flag) | ||
- ``<referenceFilterName>_flux``: brightness in the specified reference catalog filter (nJy) | ||
Note: you can use astropy.units to convert from AB Magnitude to nJy: `u.Magnitude(value, u.ABmag).to_value(u.nJy)` | ||
- ``<referenceFilterName>_fluxErr`` (optional): brightness standard deviation (nJy); omitted if no data is available; possibly nan if data is available for some objects but not others | ||
- ``camFlux``: brightness in default camera filter (nJy); omitted if `defaultFilter` not specified | ||
- ``camFluxErr``: brightness standard deviation for default camera filter; omitted if `defaultFilter` not specified or standard deviation not available that filter | ||
- ``<cameraFilterName>_camFlux``: brightness in specified camera filter (nJy) | ||
- ``<cameraFilterName>_camFluxErr`` (optional): brightness standard deviation in specified camera filter (nJy); omitted if no data is available; | ||
possibly nan if data is available for some objects but not others | ||
- ``photometric`` (optional): is the object usable for photometric calibration? (a Flag) | ||
- ``resolved`` (optional): is the object spatially resolved? (a Flag) | ||
- ``variable`` (optional): does the object have variable brightness? (a Flag) | ||
- ``coord_raErr``: uncertainty in `coord` along the direction of right ascension (radian, an Angle) = uncertainty in ra * cos(dec); nan if unknown | ||
- ``coord_decErr``: uncertainty in `coord` along the direction of declination (radian, an Angle); | ||
nan if unknown | ||
|
||
The following are optional; fields should only be present if the information is available for at least some objects. | ||
Numeric values are `nan` if unknown: | ||
|
||
- ``epoch``: date of observation as TAI MJD (day) | ||
- ``pm_ra``: proper motion along the direction of right ascension (rad/year, an Angle) = dra/dt * cos(dec) | ||
- ``pm_dec``: proper motion along the direction of declination (rad/year, and Angle) | ||
- ``pm_raErr``: uncertainty in `pm_ra` (rad/year) | ||
- ``pm_decErr``: uncertainty in `pm_dec` (rad/year) | ||
- ``pm_ra_dec_Cov``: covariance between pm_ra and pm_dec (rad2/year2) | ||
- ``pm_flag``: set if proper motion, error or covariance is bad | ||
- ``parallax``: parallax (rad, an Angle) | ||
- ``parallaxErr``: uncertainty in `parallax` (rad) | ||
- ``parallax_flag``: set if parallax value or parallaxErr is bad | ||
- ``coord_ra_pm_ra_Cov``: covariance between coord_ra and pm_ra (rad2/year) | ||
- ``coord_ra_pm_dec_Cov``: covariance between coord_ra and pm_dec (rad2/year) | ||
- ``coord_ra_parallax_Cov``: covariance between coord_ra and parallax (rad2/year) | ||
- ``coord_dec_pm_ra_Cov``: covariance between coord_dec and pm_ra (rad2/year) | ||
- ``coord_dec_pm_dec_Cov``: covariance between coord_dec and pm_dec (rad2/year) | ||
- ``coord_dec_parallax_Cov``: covariance between coord_dec and parallax (rad2/year) | ||
- ``pm_ra_parallax_Cov``: covariance between pm_ra and parallax (rad2/year) | ||
- ``pm_dec_parallax_Cov``: covariance between pm_dec and parallax (rad2/year) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters