windkit.empty.empty_gwc
- windkit.empty.empty_gwc(output_locs, nsec=12, not_empty=True, seed=9876538, gen_heights=(10.0, 50.0, 100.0), gen_roughnesses=(0.0, 0.03, 0.1, 0.4, 1.5), wdfreq_constant=False, **kwargs)[source]
Create empty generalized wind climate dataset.
If not_empty=True, the data variables are filled with meaninful random numbers, e.g. the values from A are generated from a uniform function between 5 and 10 and the values for k from a uniform function between 1.5 and 2.5.
- Parameters:
output_locs (xarray.Dataset) – Output geospatial information.
nsec (int) – Number of sectors, defaults to 12.
not_empty (bool) – If true, the empty dataset is filled with random meaningful data. Defaults to True.
seed (int) – Seed for the random data, defaults to 9876538.
gen_heights (list) – List of generalized heights to use for coordinates
gen_roughnesses (list) – List of generalized roughnesses to use for coordinates
wdfreq_constant (bool) – If True, the values of wdfreq do not change with along the dimension gen_heights. This is used when writing lib files. Defaults to False.
kwargs (dict) – Additional arguments.
- Returns:
ds – Generalized wind climate dataset either empty or filled with random numbers.
- Return type: