Browse Source

Merge tag '1.0.1' into develop

Fixes map projection initialization issue with polar stereographic and also ignores XTIME if it is not actually in the file, but listed as a coordinate for a variable.
lon0
Bill Ladwig 8 years ago
parent
commit
65afb53121
  1. 3
      doc/source/new.rst
  2. 8
      src/wrf/util.py

3
doc/source/new.rst

@ -10,6 +10,9 @@ v1.0.1
- Release 1.0.1 - Release 1.0.1
- Fixed issue with initialization of PolarStereographic and LatLon map - Fixed issue with initialization of PolarStereographic and LatLon map
projection objects. projection objects.
- Fixed issue where XTIME could be included in the coordinate list of a
variable, but the actual XTIME variable could be missing. NCL allows this,
so wrf-python should as well.
v1.0.0 v1.0.0

8
src/wrf/util.py

@ -1135,7 +1135,13 @@ def _get_coord_names(wrfin, varname):
time_coord = coord_names[2] time_coord = coord_names[2]
except IndexError: except IndexError:
time_coord = None time_coord = None
else:
# Make sure they time variable wasn't removed
try:
_ = wrfnc.variables[time_coord]
except KeyError:
time_coord = None
return lat_coord, lon_coord, time_coord return lat_coord, lon_coord, time_coord

Loading…
Cancel
Save