Commit 870c19b3 authored by Jeff Piollé's avatar Jeff Piollé

added decoding of more possible fill_value attributes in HDFFile class

parent 0dc8c534
......@@ -252,12 +252,17 @@ class HDFFile(AbstractMapper):
attrs = self.read_field_attributes(fieldname)
if '_FillValue' in attrs:
fill_value = attrs['_FillValue']
fill_value = None
if not fill_value is None:
values =, fill_value=fill_value)
# retrieve fill value
fill_value = None
for att in ['bad_value_scaled', '_FillValue']:
if att in attrs:
fill_value = attrs[att]
# mask fill values
if fill_value is not None:
values =, fill_value)
values =
if 'scale_factor' in attrs:
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