|
LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Classes | |
| class | DcrModel |
Functions | |
| def | applyDcr (image, dcr, useInverse=False, splitSubfilters=False, splitThreshold=0., doPrefilter=True, order=3) |
| def | calculateDcr (visitInfo, wcs, effectiveWavelength, bandwidth, dcrNumSubfilters, splitSubfilters=False) |
| def | calculateImageParallacticAngle (visitInfo, wcs) |
| def | wavelengthGenerator (effectiveWavelength, bandwidth, dcrNumSubfilters) |
| def lsst.ip.diffim.dcrModel.applyDcr | ( | image, | |
| dcr, | |||
useInverse = False, |
|||
splitSubfilters = False, |
|||
splitThreshold = 0., |
|||
doPrefilter = True, |
|||
order = 3 |
|||
| ) |
Shift an image along the X and Y directions.
Parameters
----------
image : `numpy.ndarray`
The input image to shift.
dcr : `tuple`
Shift calculated with ``calculateDcr``.
Uses numpy axes ordering (Y, X).
If ``splitSubfilters`` is set, each element is itself a `tuple`
of two `float`, corresponding to the DCR shift at the two wavelengths.
Otherwise, each element is a `float` corresponding to the DCR shift at
the effective wavelength of the subfilter.
useInverse : `bool`, optional
Apply the shift in the opposite direction. Default: False
splitSubfilters : `bool`, optional
Calculate DCR for two evenly-spaced wavelengths in each subfilter,
instead of at the midpoint. Default: False
splitThreshold : `float`, optional
Minimum DCR difference within a subfilter required to use
``splitSubfilters``
doPrefilter : `bool`, optional
Spline filter the image before shifting, if set. Filtering is required,
so only set to False if the image is already filtered.
Filtering takes ~20% of the time of shifting, so if `applyDcr` will be
called repeatedly on the same image it is more efficient to
precalculate the filter.
order : `int`, optional
The order of the spline interpolation, default is 3.
Returns
-------
shiftedImage : `numpy.ndarray`
A copy of the input image with the specified shift applied.
Definition at line 693 of file dcrModel.py.
| def lsst.ip.diffim.dcrModel.calculateDcr | ( | visitInfo, | |
| wcs, | |||
| effectiveWavelength, | |||
| bandwidth, | |||
| dcrNumSubfilters, | |||
splitSubfilters = False |
|||
| ) |
Calculate the shift in pixels of an exposure due to DCR.
Parameters
----------
visitInfo : `lsst.afw.image.VisitInfo`
Metadata for the exposure.
wcs : `lsst.afw.geom.SkyWcs`
Coordinate system definition (wcs) for the exposure.
effectiveWavelength : `float`
The effective wavelengths of the current filter, in nanometers.
bandwidth : `float`
The bandwidth of the current filter, in nanometers.
dcrNumSubfilters : `int`
Number of sub-filters used to model chromatic effects within a band.
splitSubfilters : `bool`, optional
Calculate DCR for two evenly-spaced wavelengths in each subfilter,
instead of at the midpoint. Default: False
Returns
-------
dcrShift : `tuple` of two `float`
The 2D shift due to DCR, in pixels.
Uses numpy axes ordering (Y, X).
Definition at line 759 of file dcrModel.py.
| def lsst.ip.diffim.dcrModel.calculateImageParallacticAngle | ( | visitInfo, | |
| wcs | |||
| ) |
Calculate the total sky rotation angle of an exposure.
Parameters
----------
visitInfo : `lsst.afw.image.VisitInfo`
Metadata for the exposure.
wcs : `lsst.afw.geom.SkyWcs`
Coordinate system definition (wcs) for the exposure.
Returns
-------
`lsst.geom.Angle`
The rotation of the image axis, East from North.
Equal to the parallactic angle plus any additional rotation of the
coordinate system.
A rotation angle of 0 degrees is defined with
North along the +y axis and East along the +x axis.
A rotation angle of 90 degrees is defined with
North along the +x axis and East along the -y axis.
Definition at line 815 of file dcrModel.py.
| def lsst.ip.diffim.dcrModel.wavelengthGenerator | ( | effectiveWavelength, | |
| bandwidth, | |||
| dcrNumSubfilters | |||
| ) |
Iterate over the wavelength endpoints of subfilters.
Parameters
----------
effectiveWavelength : `float`
The effective wavelength of the current filter, in nanometers.
bandwidth : `float`
The bandwidth of the current filter, in nanometers.
dcrNumSubfilters : `int`
Number of sub-filters used to model chromatic effects within a band.
Yields
------
`tuple` of two `float`
The next set of wavelength endpoints for a subfilter, in nanometers.
Definition at line 847 of file dcrModel.py.