nilsnevertree / CLEO-sdm-eurec4a

Clara Bayley's version of the superdroplet model. CLEO, short for Cleopatra and CLEO = Clouds in a Lagrangian Exascale mOdel
Other
0 stars 0 forks source link

Binning function on pure awkward arrays. #27

Closed nilsnevertree closed 5 months ago

nilsnevertree commented 5 months ago

Very spares arrays are created by the stationary setup of the eurec4a 1d rainshaft example. To handle these datasets, it would be convenient to perform the binning process with pure awkward array methods.

In the long run, a flexible methodology to bin by e.g. superdroplet id, gridbox, time in a flexible order. This would allow to create eulerian and lagrangian calculation e.g.

nilsnevertree commented 5 months ago

An idea would be to extent the SupersData Class in a form that attributes and indexers are stored within it. This would require some subclasses which can be then used to wrap around the binning functinos and other handy funcitons as summation or differentiation as in xarray.