Skip to content

Commit

Permalink
Add 'nlon' nlat' to grid coordinate names (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaussion committed May 11, 2018
1 parent 61e95e4 commit eeab83d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Bug fixes
- ``Grid.ij_to_crs`` should now handle non numpy arrays too
- Corrected an internal bug with latest xarray version (:pull:`97`). Users
will have to update to latest xarray version (v0.10+).
- Added new coordinate names to be understood by salem (:issue:`100`).


v0.2.1 (07 February 2017)
Expand Down
4 changes: 2 additions & 2 deletions salem/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ def _hash_cache_dir():
valid_names = dict()
valid_names['x_dim'] = ['west_east', 'lon', 'longitude', 'longitudes', 'lons',
'xlong', 'xlong_m', 'dimlon', 'x', 'lon_3', 'long',
'phony_dim_0', 'eastings', 'easting']
'phony_dim_0', 'eastings', 'easting', 'nlon', 'nlong']
valid_names['y_dim'] = ['south_north', 'lat', 'latitude', 'latitudes', 'lats',
'xlat', 'xlat_m', 'dimlat', 'y','lat_3', 'phony_dim_1',
'northings', 'northing']
'northings', 'northing', 'nlat']
valid_names['z_dim'] = ['levelist','level', 'pressure', 'press', 'zlevel', 'z',
'bottom_top']
valid_names['t_dim'] = ['time', 'times', 'xtime']
Expand Down

0 comments on commit eeab83d

Please sign in to comment.