SalishSeaCast / SalishSeaNowcast

Python package associated with running the SalishSeaCast NEMO and other ocean models in near-real-time to produce daily nowcasts/forecasts
https://salishsea.eos.ubc.ca/nemo/
Apache License 2.0
4 stars 3 forks source link

Update use of `loffset` in `dataset.resample()` in `compare_tide_prediction_max_ssh` figure #252

Open douglatornell opened 3 months ago

douglatornell commented 3 months ago

Log message:

/SalishSeaCast/SalishSeaNowcast/nowcast/figures/publish/compare_tide_prediction_max_ssh.py:158: 
FutureWarning: Following pandas, the `loffset` parameter to resample will be deprecated in a future version
of xarray. Switch to using time offset arithmetic.
  obs_10min_avg = obs_1min.resample(time="10min", loffset="5min").mean()