windkit.weibull_wind_climate.read_wwc

windkit.weibull_wind_climate.read_wwc(wwc_file, crs=None)[source]

Creates and validates a weibull wind climate xarray.Dataset from a netCDF File. it is a wrapper for xarray.load_dataset that adds windkit validation and attribute update.

Parameters:
Returns:

ds – weibull wind climate dataset that is formatted to match the wwc description.

Return type:

xarray.Dataset

Raises:
  • ValueError – If crs does not match dataset crs.

  • ValueError – If the data read is not a valid weibull wind climate dataset.