Add mask to Info object
Closes #124 (closed) #118 (closed) #111 (closed) #113 (closed)
Enhancements
- added
Maskenum with two options:-
Mask.FLEXfor flexible masking -
Mask.NONEto explicitly use plain numpy arrays
-
- added
maskattribute and init-arg toInfo: can be aMaskvalue or a valid mask fornumpy.ma.MaskedArray -
data.tools.preparenow applies masks to data if set inInfoobject -
ARegriddingnow has aout_maskarg -
RegridNearestandRegridLinearnow support explicitly masked data (input doesn't haveMask.FLEX) - adapters now have an
in_infoproperty
Changes
-
Infonow has properties forgrid,timeandmask - all init-args of
Infoare now optional -
Info.acceptshas changed signature: renamedignore_nonetoincoming_donwstream -
Info.acceptsnow only checks:grid,maskandunits(other meta data can differ) -
Grid.to_/from_canonicalnow allows additional dimensions -
data_shapenow a property ofGridBase-
NoGridcan be initialized withdimordata_shapenow -
NoGrid.data_shapecan have-1entries for variable size dimensions - if only
dimgiven toNoGrid, all entries indata_shapewill be-1
-
Fixes
- cells for structured grids in 3D are now created correctly (no negative Volume in VTK/ESMF)
Edited by Sebastian Müller