windkit.ltc.VarRatMCP.predict#

VarRatMCP.predict(ds_ref, return_std=False, **kwargs)#

Predict wind speed from the reference data.

Loops through sectors and predicts with the sector-specific model.

Parameters:
  • ds_ref (xarray.Dataset) – Time series wind climate dataset.

  • return_std (bool) – If True, return a tuple (ds_pred, std) where std is a flat array of residual standard deviations (one per element in the flattened wind speed array) mapped from the sector models. Default is False.

Returns:

Predicted wind speeds and directions. If return_std is True, a tuple (ds_pred, std) is returned instead.

Return type:

xarray.Dataset or tuple of (xarray.Dataset, numpy.ndarray)