windkit.weibull_wind_climate.read_wrgfile
- windkit.weibull_wind_climate.read_wrgfile(wrgfile, crs=None, to_cuboid=True, use_production=False, **kwargs)[source]
Reads .wrg file into a weibull wind climate dataset.
- Parameters:
wrgfile (str, pathlib.Path, io.StringIO) – Path to .wrg file
crs (int, dict, str or CRS) – Value to create CRS object or an existing CRS object
to_cuboid (boolean) – If true, the dataset will be converted to the cuboid spatial structure (dimensions south_north, west_east, height).
use_production (bool) – If True, the column with power in the file is interpreted as power production, i.e. stored as ‘gross_aep’ in the dataset. If False, it is stored as ‘power_density’. If the values in the file are power production, they are originally storedin Wh/y, but they are saved with units GWh/y in the dataset. Defaults to False.
- Returns:
wwc – Weibull wind climate dataset.
- Return type: