We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2122d96 + 40a5d47 commit 948e76fCopy full SHA for 948e76f
lib/iris/fileformats/_pyke_rules/fc_rules_cf.krb
@@ -947,6 +947,8 @@ fc_extras
947
################################################################################
948
def get_attr_units(cf_var, attributes):
949
attr_units = getattr(cf_var, CF_ATTR_UNITS, iris.unit._UNIT_DIMENSIONLESS)
950
+ if not attr_units:
951
+ attr_units = '1'
952
953
# Sanitise lat/lon units.
954
if attr_units in UD_UNITS_LAT or attr_units in UD_UNITS_LON:
0 commit comments