Closed vgro closed 1 month ago
Maybe add this to the LayerStructure as a method get_empty_layer_array
that returns the expected np.nan
filled cell_id
by layer_structure
canopy layer. Might need to be a stand alone util
actually because it needs access to Grid
properties?
resolved with new layer structure #421
Most variables in the
data
object have the full vertical dimension/coordinates, including rows of NaN, for example the soil layers inair_temperature
and the canopy layers that are not filled. We run a lot of functions by selecting the relevant layers and converting them to numpy arrays and then concatenating everything back together. This is often clunky and very hard to read, see comments in #406We would like shapes stored somewhere that we can use to select and replace layers from the
data
object. For example like:For tests, we would like something like