swot_simulator.orbit_propagator.Orbit#
- class swot_simulator.orbit_propagator.Orbit(height: float, lat: ndarray, lon: ndarray, pass_time: ndarray, time: ndarray, x_al: ndarray, curvilinear_distance: float, shift_time: Optional[timedelta64], temporal_overlap: Optional[float])[source]#
Bases:
object
Properties of one orbit.
- Parameters
height (float) – Satellite height (in m)
lat (numpy.ndarray) – Latitudes (in degrees)
lon (numpy.ndarray) – Longitudes (in degrees)
pass_time (np.ndarray) – Start date of half-orbits.
time (np.ndarray) – Date of the positions (in seconds).
x_al (np.ndarray) – Along track distance
curvilinear_distance (float) – Distance covered by the satellite during a complete cycle.
shift_time (float) – Time shift to be applied.
temporal_overlap (float, optional) – Simulate products overlapping by this amount of time, in seconds, with the previous and next products.
- __init__(height: float, lat: ndarray, lon: ndarray, pass_time: ndarray, time: ndarray, x_al: ndarray, curvilinear_distance: float, shift_time: Optional[timedelta64], temporal_overlap: Optional[float])[source]#
Methods
Get the cycle duration.
Calculate the cycle and pass number from a given absolute pass number.
Returns the average time difference between two measurements.
Calculate the absolute pass number for a given half-orbit.
Orbit.iterate
([first_date, last_date, ...])Obtain all half-orbits within the defined time interval.
Get the orbit duration.
Orbit.pass_duration
(number)Get the duration of a given pass.
Orbit.pass_shift
(number)Get the time offset between the first measurement and the last measurement of the track.
Get the number of passes per cycle.
Orbit._temporal_overlap
(time, temporal_overlap)Converts the temporal overlap to an integer number of samples.