wrf.metadecorators.set_cape_alg_metadata¶
-
wrf.metadecorators.
set_cape_alg_metadata
(is2d, copyarg='pres_hpa')¶ A decorator that sets the metadata for the wrapped raw CAPE diagnostic function.
Parameters: Returns: The wrapped CAPE function output with or without metadata. If xarray is enabled and the meta parameter is True, then the result will be a
xarray.DataArray
object. Otherwise, the result will be anumpy.ndarray
object with no metadata.Return type: