gordias.util.units.get_precipitation_rate_conversion#

gordias.util.units.get_precipitation_rate_conversion(old_quantity: PrecipitationQuantity, new_quantity: PrecipitationQuantity, integration_time: Unit) Unit#

Get unit for rate conversion between precipitation units.

Some precipitation units does not have time as part of their unit. In such cases the precipitation integration time must be supplied.

Parameters:
Returns:

Rate conversion as a unit.

Return type:

cf_units.Unit

Raises:

ValueError – If integration_time is not a time unit.