windkit.io.wasp.format_lib#
- windkit.io.wasp.format_lib(A, k, wdfreq, gen_roughness, gen_height, coords, metadata=None)[source]#
Format Weibull parameters as a .lib file content string.
- Parameters:
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.
- Returns:
File content string (with
\nline endings).- Return type: