Skip to content

Commit

Permalink
Don't wrap lon in coards conversion
Browse files Browse the repository at this point in the history
Note COARDS and CF seem to both allow longitudes
other than [-180, 180) format
  • Loading branch information
zmoon committed Nov 18, 2024
1 parent fe185e1 commit ca1880b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monet/monet_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _coards_to_netcdf(dset, lat_name="lat", lon_name="lon"):
"""
from numpy import arange, meshgrid

lon = wrap_longitudes(dset[lon_name])
lon = dset[lon_name]
lat = dset[lat_name]
lons, lats = meshgrid(lon, lat)
x = arange(len(lon))
Expand Down Expand Up @@ -217,7 +217,7 @@ def _dataarray_coards_to_netcdf(dset, lat_name="lat", lon_name="lon"):
"""
from numpy import arange, meshgrid

lon = wrap_longitudes(dset[lon_name])
lon = dset[lon_name]
lat = dset[lat_name]
lons, lats = meshgrid(lon, lat)
x = arange(len(lon))
Expand Down

0 comments on commit ca1880b

Please sign in to comment.