Draft: Add mask to Info object
Enhancements
- added
Mask
enum with two options:-
Mask.FLEX
for flexible masking -
Mask.NONE
to explicitly use plain numpy arrays
-
- added
mask
attribute and init-arg toInfo
: can be aMask
value or a valid mask fornumpy.ma.MaskedArray
-
data.tools.prepare
now applies masks to data if set inInfo
object -
ARegridding
now has aout_mask
arg -
RegridNearest
andRegridLinear
now support explicitly masked data (input doesn't haveMask.FLEX
) - adapters now have an
in_info
property
Changes
-
Info
now has properties forgrid
,time
andmask
- all init-args of
Info
are now optional -
Info.accepts
has changed signature: renamedignore_none
toincoming_donwstream
-
Info.accepts
now only checks:grid
,mask
andunits
(other meta data can differ) -
Grid.to_/from_canonical
now allows additional dimensions -
data_shape
now a property ofGridBase
(NoGrid has an empty data_shape)
Fixes
- cells for structured grids in 3D are now created correctly (no negative Volume in VTK/ESMF)
Edited by Sebastian Müller