Grid: update data conversion
we need methods in the StructuredGrid
class:
-
to_canonical(data)
: convert grid specific data into a canonical form (xyz order with increasing axes) -
from_canonical(data)
convert grid compatible data from their canonical representation to the grid specific form -
compatible_with(other_grid)
: check if the grid is compatible to another grid -
__eq__
: needs to incorporate axes order and whether they are increasing or decreasing
Conversion of data in Inputs
:
- along with unit conversion data from compatible grid should be transformed to target grid specification
- grid compatibility should be checked next to unit compatibility
Side-effects:
- NetCDF IO should be streamlined (only select axes order when creating the component)
- Plotting should be streamlined (always plot xyz order with increasing axes)
Edited by Sebastian Müller