Add mask to Info object
All threads resolved!
All threads resolved!
Closes #124 (closed) #118 (closed) #111 (closed) #113 (closed)
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
can be initialized withdim
ordata_shape
now -
NoGrid.data_shape
can have-1
entries for variable size dimensions - if only
dim
given toNoGrid
, all entries indata_shape
will be-1
-
Fixes
- cells for structured grids in 3D are now created correctly (no negative Volume in VTK/ESMF)
Edited by Sebastian Müller
Merge request reports
Activity
Filter activity
mentioned in merge request !284 (closed)
added 1 commit
- 7cc5e64f - data.tools.prepare: mask data if stated by info
added 1 commit
- cc791d2a - Info: accepts is now only checking grid, mask and units, other meta ignored
added 1 commit
- cf71c209 - Output check: meta data now more forgiving; check different grids instead
added 1 commit
- 1be5960a - regrid: add masking to linear regrid and check for submask if not filling outliers
requested review from @mlange
assigned to @muellese
mentioned in issue #110
added 7 commits
- 7e5c0cd7 - data.tools: move to submodule for better structure
- d1d64adc - tests: gen_cells now has correct vtk cell-node order in 3D
- d87b7436 - data.tools: move units related routines to submodule
- 0a337b63 - data.tools: move cf_units
- 3310508b - data.tools: move mask related routine to submodule
- 8e0e3b18 - update docstring
- 4b1675a1 - data.tools: move Info to submodule
Toggle commit listadded 2 commits
added 2 commits
changed milestone to %v1.0
@mlange this is ready. If you are fine we can merge.
- Resolved by Martin Lange
- Resolved by Martin Lange
mentioned in commit 85e90240
Please register or sign in to reply