Commit 0703bc46 authored by PIOLLE's avatar PIOLLE
Browse files

fixed regression on standard_name setting

parent 79655a61
......@@ -2135,7 +2135,7 @@ class Dataset(ABC):
self.add_field_attrs(dataset, vattrs, force_profile=force_profile)
# add field encoding from custom settings
self.add_field_encoding(dataset, encoding)
self.add_field_encoding(dataset, encoding, force_profile=force_profile)
return dataset
......
......@@ -463,7 +463,7 @@ class Field(object):
self.attrs['standard_name'] = standard_name[0]
self.attrs['authority'] = standard_name[1]
elif standard_name is not None:
self.attrs['standard_name'] = standard_name[0]
self.attrs['standard_name'] = standard_name
self.attrs['authority'] = cf.CF_AUTHORITY
else:
self.attrs['standard_name'] = None
......
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