Skip to content

Commit

Permalink
Apply yapf hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
fbriol committed Sep 6, 2022
1 parent 5785f9b commit e3fc2ef
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions swot_simulator/orbit_propagator.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,13 +444,12 @@ def calculate_orbit(parameters: settings.Parameters,
# If orbit is at low resolution, interpolate the orbit provided
if np.mean(np.diff(time)) > 0.5:
time_hr = np.arange(time[0], time[-1], 0.5, dtype=time.dtype)
lon, lat = pyinterp.orbit.interpolate(
lon,
lat,
time,
time_hr,
wgs=wgs,
half_window_size=50)
lon, lat = pyinterp.orbit.interpolate(lon,
lat,
time,
time_hr,
wgs=wgs,
half_window_size=50)
time = time_hr

# Cut orbit if more than an orbit cycle is provided
Expand Down Expand Up @@ -489,11 +488,11 @@ def calculate_orbit(parameters: settings.Parameters,
1e6).astype("timedelta64[us]")

lon, lat = pyinterp.orbit.interpolate(lon,
lat,
distance,
x_al,
wgs=wgs,
half_window_size=10)
lat,
distance,
x_al,
wgs=wgs,
half_window_size=10)

return Orbit(parameters.height, lat, lon,
np.sort(calculate_pass_time(lat,
Expand Down

0 comments on commit e3fc2ef

Please sign in to comment.