—– CLEO —–
File: superdrops.py
Project: sdmout_src
Created Date: Thursday 29th May 2025
Author: Clara Bayley (CB)
Additional Contributors:
—–
License: BSD 3-Clause “New” or “Revised” License
https://opensource.org/licenses/BSD-3-Clause
—–
File Description:
python class(es) to handle superdroplet attributes data from SDM zarr store in ragged array format.
Non-compatible update on supersdata and sdtracing modules
calculates effective density [g m^-3] of
droplet such that mass_droplet, m = 4/3*pi*r^3 * rhoeff
taking into account mass of liquid and mass of
solute assuming solute occupies volume it
would given its (dry) density, RHO_SOL.
attempts to return variable in form of ragged array
(ak.Array) with dims [time, raggedcount]
for a variable “var” in xarray dataset ‘ds’.
If attempt fails, returns empty array instead