wrf.metadecorators.set_cloudfrac_alg_metadata¶
-
wrf.metadecorators.set_cloudfrac_alg_metadata(copyarg=u'pres')¶ A decorator that sets the metadata for the wrapped raw cloud fraction diagnostic function.
Parameters: copyarg ( str) – The wrapped function argument to use for copying dimension names. Default is ‘pres’.Returns: The wrapped cloud fraction 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: xarray.DataArrayornumpy.ndarray