NCPP / ocgis

OpenClimateGIS is a set of geoprocessing and calculation tools for CF-compliant climate datasets.
Other
70 stars 19 forks source link

Calculation output name with same name as data variable errors out #457

Closed bekozi closed 7 years ago

bekozi commented 7 years ago

This will cause a ValueError:

field = self.get_field()
calc = [{'func': 'mean', 'name': field.data_variables[0].name}]
ops = OcgOperations(dataset=field, calc=calc, calc_grouping=['month'])
ret = ops.execute()
ValueError: "foo" already in tag "_ocgis_data_variables".

Ping @nilshempelmann