wrf.metadecorators.set_cloudfrac_alg_metadata

wrf.metadecorators.set_cloudfrac_alg_metadata(copyarg='vert')

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 ‘vert’.
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.DataArray object. Otherwise, the result will be a numpy.ndarray object with no metadata.
Return type:xarray.DataArray or numpy.ndarray