Browse Source

Merge branch 'hotfix/1.0.1'

main 1.0.1
Bill Ladwig 8 years ago
parent
commit
3c0e3276ff
  1. 3
      doc/source/new.rst
  2. 6
      src/wrf/util.py

3
doc/source/new.rst

@ -10,6 +10,9 @@ v1.0.1 @@ -10,6 +10,9 @@ v1.0.1
- Release 1.0.1
- Fixed issue with initialization of PolarStereographic and LatLon map
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

6
src/wrf/util.py

@ -1135,6 +1135,12 @@ def _get_coord_names(wrfin, varname): @@ -1135,6 +1135,12 @@ def _get_coord_names(wrfin, varname):
time_coord = coord_names[2]
except IndexError:
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

Loading…
Cancel
Save