-
Notifications
You must be signed in to change notification settings - Fork 286
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
Handle fill value on netCDF save #2747
Changes from 13 commits
d6f543b
c5d9dc0
1cfe7f8
1f234b3
4f5dadd
92d5f30
2aa21c4
5d8375a
ca4067d
4e93e34
3ee3e24
274462e
beb8efe
d10294b
745ddd2
f119bf5
703494c
c98585a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* When saving a cube or list of cubes, a fill value or list of fill values can be specified via a new `fill_value` argument. If a `fill_value` argument is not specified, the default fill value for the file format and the cube's data type will be used. Fill values are no longer taken from the cube's `data` attribute when it is a masked array. | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* A 'fill_value' key can no longer be specified as part of the `packing` argument to `iris.save` when saving in netCDF format. Instead, a fill value should be specified as a separate `fill_value` argument if required. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a note saying that multiple fill values may be supplied, and these are applied to output cubes in sequence. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How I about I just add "or list of fill values"? I think we can assume that anyone familiar with the packing argument knows that if you specify a list of values they apply to each cube in turn. I will modify the other What's New entry to explain what happens when you pass a list of fill values. |
||
|
||
* A check is made that if the `packing` argument to `iris.save` is a dictionary then it contains no keys other than 'dtype', 'scale_factor' and 'add_offset' |
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a note explaining that multiple fill values are applied to output cubes in sequence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK