improver.pollen.daily_concentration module#

Calculations to produce Pollen Daily Concentration values.

class PollenDailyConcentration[source]#

Bases: PostProcessingPlugin

Plugin to calculate the Pollen Daily Concentration.

The input cube for this plugin comes from the output of the PollenHourlyConcentration plugin. This plugin calculates a daily mean from 24 hours of hourly data. If 24 hours of data is not available then output values from this plugin are set as NaN.

_abc_impl = <_abc._abc_data object>#
_calculate(cubes)[source]#

Perform calculations on input cubes.

For each grid point, calculate the mean pollen concentration across all hours, and use this as the daily pollen concentration for that grid point. If there are not enough hours of data, set the output values to NaN and issue a warning.

Parameters:

cubes (tuple[Cube, ...] | CubeList) – Input cubes for hourly pollen concentrations

_output_cube = None#
process(*cubes)[source]#

Calculate the Pollen Daily Concentration.

Parameters:

cubes (iris.cube.CubeList or list of iris.cube.Cube) – An iris CubeList of hourly pollen concentrations be combined as a mean.

Return type:

Cube

Returns:

The calculated output cube.

Warns:

UserWarning – If output values fall outside typical expected ranges