xarray.DataArray.pr.convert_to_mass#
- DataArray.pr.convert_to_mass(gwp_context: str | None = None, entity: str | None = None) DataArray #
Convert a global warming potential of a greenhouse gas to a mass.
- Parameters:
- gwp_context: str, optional
The global warming potential context to be used for the conversion. It must be one of the global warming potential contexts understood by
openscm_units
. If omitted, the global warming potential context used to calculate the global warming potential originally is used, so you should only need to provide an explicit gwp_context in exceptional cases.- entity: str, optional
The entity into which the global warming potential should be converted. If omitted, the original entity is used, so you should only need to provide an explicit entity in exceptional cases.
- Returns:
- convertedxr.DataArray