across.tools.ephemeris.ground_ephem
Classes
Ground-based ephemeris calculator. |
Functions
|
Compute ground-based ephemeris for a given time range and location. |
Module Contents
- class GroundEphemeris(begin, end, step_size=60, latitude=None, longitude=None, height=None)[source]
Bases:
across.tools.ephemeris.base.EphemerisGround-based ephemeris calculator.
This class extends the base Ephemeris class to calculate ephemeris data for ground-based observations from a specific location on Earth’s surface.
- Parameters:
begin (Union[datetime, Time]) – Start time of the ephemeris calculation
end (Union[datetime, Time]) – End time of the ephemeris calculation
step_size (Union[int, TimeDelta, timedelta], optional) – Time step between ephemeris points in seconds, by default 60
latitude (Optional[Latitude], optional) – Latitude of the observatory, by default None
longitude (Optional[Longitude], optional) – Longitude of the observatory, by default None
height (Optional[u.Quantity], optional) – Height of the observatory above sea level, by default None
- earth_location[source]
Location of the observatory on the Earth in astropy’s EarthLocation class.
- Type:
EarthLocation
- gcrs[source]
Observatory position in Geocentric Celestial Reference System (GCRS) coordinates
- Type:
SkyCoord
- Raises:
ValueError – If observatory location (latitude, longitude, or height) is not set
Notes
The class calculates the position of a ground-based observatory in GCRS coordinates, which is necessary for various astronomical calculations.
- compute_ground_ephemeris(begin, end, step_size, latitude, longitude, height)[source]
Compute ground-based ephemeris for a given time range and location.
- Parameters:
begin (Union[datetime, Time]) – The start time of the ephemeris computation.
end (Union[datetime, Time]) – The end time of the ephemeris computation.
step_size (int) – The step size in seconds for the ephemeris computation.
latitude (Latitude) – The latitude of the ground-based observatory.
longitude (Longitude) – The longitude of the ground-based observatory.
height (u.Quantity) – The height of the ground-based observatory above sea level.
- Returns:
An Ephemeris object containing the computed ephemeris data.
- Return type: