windkit.binned_wind_climate.read_bwc
- windkit.binned_wind_climate.read_bwc(file, crs=None)[source]
Creates binned wind climate xarray.Dataset from file.
- Parameters:
file (str or Path) – Path to a file that can be opened as a bwc. This includes .tab, .owc, .omwc, and .nc files that were created as bwc files. The script will use the file extension to determine the file type and then parse it into a bwc DataSet object.
crs (int, dict, str or pyproj.crs.CRS) – Value to initialize
pyproj.crs.CRS
Defaults to 4326 (Lat-Lon/WGS84 geodetic datum) for .tab, .owc and .omwc files, and the embedded CRS for .nc files.
- Returns:
ds – binned wind climate dataset that is formatted to match the bwc description.
- Return type:
- Raises:
ValueError – If crs does not match dataset crs.
ValueError – If type of bwc is undetectable.