blaylockbk / Herbie

Download numerical weather prediction datasets (HRRR, RAP, GFS, IFS, etc.) from NOMADS, NODD partners (Amazon, Google, Microsoft), ECMWF open data, and the University of Utah Pando Archive System.
https://herbie.readthedocs.io/
MIT License
480 stars 72 forks source link

Prefer `[-180,180]` longitude format #320

Closed blaylockbk closed 2 months ago

blaylockbk commented 4 months ago

I wonder if it would be useful to force the returned xarray dataset longitude to be -180,180 rather than being either [0,360] or [-180,180].

blaylockbk commented 2 months ago

In v2024.7.0 I included an accessor to_180 and to_360 to easily convert the dataset longitude values.

ds.herbie.to_180()
ds.herbie.to_360()
blaylockbk commented 2 months ago

closing since I'll let the user decide which one they prefer and use the provided accessor