Skip to content

Commit

Permalink
HOTFIX: interpolation of tracks
Browse files Browse the repository at this point in the history
`interpolateTracks.interpolate()` function had unhandled situation of raw track with three points unhandled, which led to interpolated track having central pressure values set to missing values.
  • Loading branch information
wcarthur committed Apr 16, 2021
1 parent 838da34 commit d93f1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Evaluate/interpolateTracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def interpolate(track, delta, interpolation_type=None):
nLon = interp1d(timestep, track.Longitude, kind='linear')(newtime)
nLat = interp1d(timestep, track.Latitude, kind='linear')(newtime)

if len(validIdx) == 2:
if len(validIdx) >= 2:
npCentre = interp1d(timestep,
track.CentralPressure,
kind='linear')(newtime)
Expand Down

0 comments on commit d93f1e3

Please sign in to comment.