|
LSST Applications
21.0.0+04719a4bac,21.0.0-1-ga51b5d4+ae94e5adf4,21.0.0-10-g2408eff+ad7fe00a3b,21.0.0-10-g560fb7b+5d30037bff,21.0.0-10-gcf60f90+7fd8e8fd04,21.0.0-11-g25eff31+491f1498e8,21.0.0-11-gd78879e+d13a45ff19,21.0.0-12-g1e69a3f+69d54d99d8,21.0.0-17-g6590b197+c8c705a94e,21.0.0-2-g103fe59+29086b68f8,21.0.0-2-g1367e85+d793a9824f,21.0.0-2-g45278ab+04719a4bac,21.0.0-2-g5242d73+d793a9824f,21.0.0-2-g7f82c8f+7178d1fb8b,21.0.0-2-g8f08a60+fd0b970de5,21.0.0-2-g8faa9b5+3b24369756,21.0.0-2-ga326454+7178d1fb8b,21.0.0-2-gde069b7+ca45a81b40,21.0.0-2-gecfae73+3609a557ba,21.0.0-2-gfc62afb+d793a9824f,21.0.0-22-g2a5702db6+f385fa6f38,21.0.0-3-g357aad2+673ab9f056,21.0.0-3-g4be5c26+d793a9824f,21.0.0-3-g65f322c+45176dc65e,21.0.0-3-g7d9da8d+3b24369756,21.0.0-3-ge02ed75+d05e6d1be4,21.0.0-4-g591bb35+d05e6d1be4,21.0.0-4-g65b4814+5d30037bff,21.0.0-4-gccdca77+a631590478,21.0.0-4-ge8a399c+7f1b116a8b,21.0.0-5-gb7b9a9f+d793a9824f,21.0.0-5-gd00fb1e+de3bd29da1,21.0.0-55-g0be6b205+66ae927d20,21.0.0-6-g2d4f3f3+04719a4bac,21.0.0-7-g04766d7+510a52a951,21.0.0-7-g98eecf7+adb4d61a8d,21.0.0-9-g39e06b5+d05e6d1be4,master-gac4afde19b+d05e6d1be4,w.2021.12
LSST Data Management Base Package
|
Functions | |
| def | refraction (wavelength, elevation, observatory, weather=None) |
| def | differentialRefraction (wavelength, wavelengthRef, elevation, observatory, weather=None) |
| def | deltaN (wavelength, weather) |
| def | densityFactorDry (weather) |
| def | densityFactorWater (weather) |
| def | humidityToPressure (weather) |
| def | extractTemperature (weather, useKelvin=False) |
| def | defaultWeather (altitude) |
Variables | |
| float | deltaRefractScale = 1.0E8 |
| def lsst.afw.coord.refraction.defaultWeather | ( | altitude | ) |
Set default local weather conditions if they are missing.
Parameters
----------
weather : `lsst.afw.coord.Weather`
Class containing the measured temperature, pressure, and humidity
at the observatory during an observation
altitude : `astropy.units.Quantity`
The altitude of the observatory, in meters.
Returns
-------
default : `lsst.afw.coord.Weather`
Updated Weather class with any `nan` values replaced by defaults.
Definition at line 294 of file refraction.py.
| def lsst.afw.coord.refraction.deltaN | ( | wavelength, | |
| weather | |||
| ) |
Calculate the differential refractive index of air.
Parameters
----------
wavelength : `float`
wavelength is in nanometers
weather : `lsst.afw.coord.Weather`
Class containing the measured temperature, pressure, and humidity
at the observatory during an observation
Returns
-------
deltaN : `float`
The difference of the refractive index of air from 1.,
calculated as (n_air - 1)*10^8
Notes
-----
The differential refractive index is the difference of
the refractive index from 1., multiplied by 1E8 to simplify
the notation and equations. Calculated as (n_air - 1)*10^8
This replicates equation 14 of [1]_
References
----------
.. [1] R. C. Stone, "An Accurate Method for Computing Atmospheric
Refraction," Publications of the Astronomical Society of the Pacific,
vol. 108, p. 1051, 1996.
Definition at line 124 of file refraction.py.
| def lsst.afw.coord.refraction.densityFactorDry | ( | weather | ) |
Calculate dry air pressure term to refractive index calculation.
Parameters
----------
weather : `lsst.afw.coord.Weather`
Class containing the measured temperature, pressure, and humidity
at the observatory during an observation
Returns
-------
densityFactor : `float`
Returns the relative density of dry air
at the given pressure and temperature.
Notes
-----
This replicates equation 15 of [1]_
References
----------
.. [1] R. C. Stone, "An Accurate Method for Computing Atmospheric
Refraction," Publications of the Astronomical Society of the Pacific,
vol. 108, p. 1051, 1996.
Definition at line 161 of file refraction.py.
| def lsst.afw.coord.refraction.densityFactorWater | ( | weather | ) |
Calculate water vapor pressure term to refractive index calculation.
Parameters
----------
weather : `lsst.afw.coord.Weather`
Class containing the measured temperature, pressure, and humidity
at the observatory during an observation
Returns
-------
densityFactor : `float`
Returns the relative density of water vapor
at the given pressure and temperature.
Notes
-----
This replicates equation 16 of [1]_
References
----------
.. [1] R. C. Stone, "An Accurate Method for Computing Atmospheric
Refraction," Publications of the Astronomical Society of the Pacific,
vol. 108, p. 1051, 1996.
Definition at line 196 of file refraction.py.
| def lsst.afw.coord.refraction.differentialRefraction | ( | wavelength, | |
| wavelengthRef, | |||
| elevation, | |||
| observatory, | |||
weather = None |
|||
| ) |
Calculate the differential refraction between two wavelengths.
Parameters
----------
wavelength : `float`
wavelength is in nm (valid for 230.2 < wavelength < 2058.6)
wavelengthRef : `float`
Reference wavelength, typically the effective wavelength of a filter.
elevation : `lsst.geom.Angle`
Elevation of the observation, as an Angle.
observatory : `lsst.afw.coord.Observatory`
Class containing the longitude, latitude,
and altitude of the observatory.
weather : `lsst.afw.coord.Weather`, optional
Class containing the measured temperature, pressure, and humidity
at the observatory during an observation
If omitted, typical conditions for the observatory's elevation will be calculated.
Returns
-------
differentialRefraction : `lsst.geom.Angle`
The refraction at `wavelength` minus the refraction at `wavelengthRef`.
Definition at line 95 of file refraction.py.
| def lsst.afw.coord.refraction.extractTemperature | ( | weather, | |
useKelvin = False |
|||
| ) |
Thin wrapper to return the measured temperature from an observation.
Parameters
----------
weather : `lsst.afw.coord.Weather`
Class containing the measured temperature, pressure, and humidity
at the observatory during an observation
useKelvin : bool, optional
Set to True to return the temperature in Kelvin instead of Celsius
This is needed because Astropy can't easily convert
between Kelvin and Celsius.
Returns
-------
temperature : `astropy.units.Quantity`
The temperature in Celsius, unless `useKelvin` is set.
Definition at line 270 of file refraction.py.
| def lsst.afw.coord.refraction.humidityToPressure | ( | weather | ) |
Convert humidity and temperature to water vapor pressure.
Parameters
----------
weather : `lsst.afw.coord.Weather`
Class containing the measured temperature, pressure, and humidity
at the observatory during an observation
Returns
-------
pressure : `astropy.units.Quantity`
The water vapor pressure in Pascals
calculated from the given humidity and temperature.
Notes
-----
This replicates equations 18 & 20 of [1]_
References
----------
.. [1] R. C. Stone, "An Accurate Method for Computing Atmospheric
Refraction," Publications of the Astronomical Society of the Pacific,
vol. 108, p. 1051, 1996.
Definition at line 233 of file refraction.py.
| def lsst.afw.coord.refraction.refraction | ( | wavelength, | |
| elevation, | |||
| observatory, | |||
weather = None |
|||
| ) |
Calculate overall refraction under atmospheric and observing conditions.
Parameters
----------
wavelength : `float`
wavelength is in nm (valid for 230.2 < wavelength < 2058.6)
elevation : `lsst.geom.Angle`
Elevation of the observation, as an Angle.
observatory : `lsst.afw.coord.Observatory`
Class containing the longitude, latitude,
and altitude of the observatory.
weather : `lsst.afw.coord.Weather`, optional
Class containing the measured temperature, pressure, and humidity
at the observatory during an observation
If omitted, typical conditions for the observatory's elevation will be calculated.
Returns
-------
refraction : `lsst.geom.Angle`
The angular refraction for light of the given wavelength,
under the given observing conditions.
Notes
-----
The calculation is taken from [1]_.
References
----------
.. [1] R. C. Stone, "An Accurate Method for Computing Atmospheric
Refraction," Publications of the Astronomical Society of the Pacific,
vol. 108, p. 1051, 1996.
Definition at line 37 of file refraction.py.
| float lsst.afw.coord.refraction.deltaRefractScale = 1.0E8 |
Definition at line 34 of file refraction.py.