wrf.metadecorators.set_cloudfrac_metadata¶
-
wrf.metadecorators.set_cloudfrac_metadata()¶ A decorator that sets the metadata for a wrapped cloud fraction function’s output.
This is a special metadata decorator for working with cloud fraction functions.
If the wrapped function’s meta argument is False, then this decorator returns the wrapped function output without applying the metadata.
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