windkit.io.wasp.write_lib#
- windkit.io.wasp.write_lib(filepath, A, k, wdfreq, gen_roughness, gen_height, coords, metadata=None)[source]#
Write Weibull parameters to a WAsP .lib file.
- Parameters:
filepath (str or Path) – Output file path.
A (array_like, shape (n_sectors, n_heights, n_roughnesses)) – Weibull A parameters.
k (array_like, shape (n_sectors, n_heights, n_roughnesses)) – Weibull k parameters.
wdfreq (array_like, shape (n_sectors, n_roughnesses)) – Normalized wind direction frequencies (0-1).
gen_roughness (array_like, shape (n_roughnesses,)) – Generalized roughness classes.
gen_height (array_like, shape (n_heights,)) – Generalized heights.
coords (dict) – Dictionary with
"west_east","south_north","height".metadata (dict, optional) – Dictionary with
"description"key.