-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Comparing observed and modeled wave spectra, it would be convenient to have the lat/lon variables on the spectra.
The way I do it now is to find the obs
indexes closest to the time_waves_imu
values like
obs_ids = []
for i in range(subset.obs_waves_imu.size):
if np.isfinite(subset.time_waves_imu.values[i]):
diff = np.abs(subset.time.values-subset.time_waves_imu.values[i])
obs_ids.append(np.argmin(diff[np.isfinite(diff)]))
Is there a method already taking care of this? Or could you simply add two variables called lon_waves, lat_waves
Metadata
Metadata
Assignees
Labels
No labels