wrf.metadecorators.set_cape_alg_metadata¶
-
wrf.metadecorators.set_cape_alg_metadata(is2d, copyarg=u'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.DataArrayobject. Otherwise, the result will be anumpy.ndarrayobject with no metadata.Return type: