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:
wwc_file (str or pathlib.Path) – Path to a netCDF file that can be opened as a wwc
crs (int, dict, str or pyproj.crs.CRS) – Value to initialize
pyproj.crs.CRS
. Defaults to the embedded CRS for .nc files.
- Returns:
ds – weibull wind climate dataset that is formatted to match the wwc description.
- Return type:
- Raises:
ValueError – If crs does not match dataset crs.
ValueError – If the data read is not a valid weibull wind climate dataset.