Commit 61e1cc20 authored by PIOLLE's avatar PIOLLE
Browse files

fix for dimension of point collection feature

parent 40cb8141
......@@ -73,20 +73,20 @@ class PointCollection(AbstractFeature):
Returns the geolocation dimension names defining a point collection
return ['time']
return ['obs']
def get_geolocation_dimsizes(self):
Returns the geolocation dimension sizes of the grid object
return OrderedDict([('time',
return OrderedDict([('obs',
def get_geolocation_field_dimnames(self, fieldname):
Returns the dimensions of a geolocation field
return ('time',)
return ('obs',)
def save(self, output, attrs={}):
......@@ -103,8 +103,8 @@ class PointCollection(AbstractFeature):
if output.is_writable():
# creating dimensions
output.create_dim('time', self.get_times().size)
dims = ['time']
output.create_dim('obs', self.get_times().size)
dims = ['obs']
for v in self._fields.keys():
if v not in self._geocoordinates:
for d in self._fields[v].dimensions:
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