mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-19 14:27:52 -04:00
Fixed mistake in Python enum for not correcting refraction.
GitHub user `hidp123` submitted the following pull request: https://github.com/cosinekitty/astronomy/pull/240 The problem was I had documentation for the Python enum `Refraction` where I incorrectly wrote `Refraction.None` instead of the correct name `Refraction.Airless`. The fix in the pull request was correct, but it was applied to generated source code, so it did not correctly update the template file or the online documentation. This commit fixes the mistake in all the affected files.
This commit is contained in:
@@ -1748,7 +1748,7 @@ to the respective `ra` and `dec` values passed in.
|
||||
| [`Observer`](#Observer) | `observer` | The location of the observer for which to find horizontal coordinates. |
|
||||
| `float` | `ra` | Right ascension in sidereal hours of the celestial object, referred to the mean equinox of date for the J2000 epoch. |
|
||||
| `float` | `dec` | Declination in degrees of the celestial object, referred to the mean equator of date for the J2000 epoch. Positive values are north of the celestial equator and negative values are south of it. |
|
||||
| [`Refraction`](#Refraction) | `refraction` | The option for selecting whether to correct for atmospheric lensing. If `Refraction.Normal`, a well-behaved refraction model is used. If `Refraction.None`, no refraction correct is performed. `Refraction.JplHorizons` is used only for compatibility testing with the JPL Horizons online tool. |
|
||||
| [`Refraction`](#Refraction) | `refraction` | The option for selecting whether to correct for atmospheric lensing. If `Refraction.Normal`, a well-behaved refraction model is used. If `Refraction.Airless`, no refraction correct is performed. `Refraction.JplHorizons` is used only for compatibility testing with the JPL Horizons online tool. |
|
||||
|
||||
**Returns**: [`HorizontalCoordinates`](#HorizontalCoordinates)
|
||||
The horizontal coordinates (altitude and azimuth), along with
|
||||
|
||||
@@ -5097,7 +5097,7 @@ def Horizon(time, observer, ra, dec, refraction):
|
||||
refraction : Refraction
|
||||
The option for selecting whether to correct for atmospheric lensing.
|
||||
If `Refraction.Normal`, a well-behaved refraction model is used.
|
||||
If `Refraction.None`, no refraction correct is performed.
|
||||
If `Refraction.Airless`, no refraction correct is performed.
|
||||
`Refraction.JplHorizons` is used only for compatibility testing
|
||||
with the JPL Horizons online tool.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user