Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow missing value master #2892

Merged
merged 3 commits into from
Jan 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/iris/_cube_coord_common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2016, Met Office
# (C) British Crown Copyright 2010 - 2017, Met Office
#
# This file is part of Iris.
#
Expand Down Expand Up @@ -33,7 +33,7 @@ class LimitedAttributeDict(dict):
'calendar', 'leap_month', 'leap_year', 'month_lengths',
'coordinates', 'grid_mapping', 'climatology',
'cell_methods', 'formula_terms', 'compress',
'missing_value', 'add_offset', 'scale_factor',
'add_offset', 'scale_factor',
'_FillValue')

def __init__(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/fileformats/netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

# CF attributes that should not be global.
_CF_DATA_ATTRS = ['flag_masks', 'flag_meanings', 'flag_values',
'instance_dimension', 'sample_dimension',
'instance_dimension', 'missing_value', 'sample_dimension',
'standard_error_multiplier']

# CF attributes that should only be global.
Expand Down
1 change: 1 addition & 0 deletions lib/iris/tests/test_netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,7 @@ def test_attributes(self):
'flag_masks': 'a',
'flag_meanings': 'b',
'flag_values': 'c',
'missing_value': 1.e20,
'STASH': iris.fileformats.pp.STASH(1, 2, 3)}
for k, v in six.iteritems(avars):
self.cube.attributes[k] = v
Expand Down