xarray.DataArray.pr.convert_to_gwp

xarray.DataArray.pr.convert_to_gwp#

DataArray.pr.convert_to_gwp(gwp_context: str, units: str | Unit) DataArray#

Convert to a global warming potential

Parameters:
gwp_context: str

The global warming potential context to use for the conversion, as understood by openscm_units.

units: str or pint unit

The units in which the global warming potential is given after the conversion.

Returns:
convertedxr.DataArray