punpy.digital_effects_table.measurement_function_utils.MeasurementFunctionUtils.calculate_unc#
- MeasurementFunctionUtils.calculate_unc(form, ds, var)[source]#
Function to extract uncertainties of given form on given variable from the given datasets and return as array.
- Parameters:
form (str) – name or type of given uncertainty component
ds (xarray.dataset) – given dataset
var (str) – given variable
- Returns:
uncertainty values for the given variable in the given dataset. returns None if uncertainty component is not present in dataset.
- Return type:
np.ndarray