emc2.simulator.psd.calc_and_set_psd_params¶
- emc2.simulator.psd.calc_and_set_psd_params(model, hyd_type, **kwargs)[source]¶
Calculate and set particle size distribution (PSD) parameters for a given hydrometeor type, microphysics scheme, and model ouput dataset. Supports both liquid and ice hydrometeor classes.
- Parameters:
- model: object
The model object containing microphysics scheme information and dataset attributes.
- hyd_type: str
The hydrometeor type, e.g., “cl” or “pl” for liquid classes, and other values for ice classes.
- **kwargs: dict
Additional keyword arguments passed to the PSD calculation functions.
- Returns:
- fits_ds: xarray.Dataset or dict
Containing the calculated PSD parameter fields such as “N_0”, “lambda”, and “mu”.