Commit 80a99b25 authored by Jeff Piollé's avatar Jeff Piollé

fix for gridded times

parent f982c2b5
......@@ -448,7 +448,8 @@ class NCFile(AbstractMapper):
native_fieldname = self.get_geolocation_field(fieldname)
if native_fieldname is None:
native_fieldname = fieldname
if self.__is_2d_time_splitted_in_grid():
if fieldname == 'time' and self.__is_2d_time_splitted_in_grid():
native_fieldname = 'dtime'
if self._handler is None:
......@@ -1044,7 +1045,6 @@ class NCFile(AbstractMapper):
ncvar[0, ...] = values - values.min()
else:
ncvar = self.get_handler().variables[field.name]
print field.name, ncvar.shape, values.shape
if ncvar.shape == (0,)\
or ncvar.shape == ()\
or values.shape == ()\
......@@ -1064,7 +1064,6 @@ class NCFile(AbstractMapper):
values.shape, ncvar.shape
)
)
print "FIN ", ncvar.shape
if field.qc_levels is not None:
self.get_handler().variables[field.name + '_qc_level'][:]\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment