improver.cli.snow_fraction module
Interface to snow_fraction.
- process(*cubes, model_id_attr=None)[source]
Calculates a snow-fraction field from fields of snow and rain (rate or accumulation). Where no precipitation is present, the data are filled in from the nearest precipitating point.
snow_fraction = snow / (snow + rain)
- Parameters:
cubes (iris.cube.CubeList or list) – Contains cubes of rain and snow, both must be either rates or accumulations.
model_id_attr (str) – Name of the attribute used to identify the source model for blending.
- Returns:
A single cube containing the snow-fraction data.
- Return type: