windkit.weibull_wind_climate.read_rsffile

windkit.weibull_wind_climate.read_rsffile(rsffile, crs, to_cuboid=False, use_production=False, **kwargs)[source]

Reads .rsf file into a weibull wind climate dataset.

Parameters:
  • rsffile (str, pathlib.Path, io.StringIO) – Path to .rsf 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:

xarray.Dataset