windkit.io.wasp.write_tab#
- windkit.io.wasp.write_tab(filepath, wsfreq, wdfreq, wsbins, coords, metadata=None)[source]#
Write tab data to a .tab file.
Accepts normalized (0-1) frequency values.
- Parameters:
filepath (str or Path) – Path to the output file.
wsfreq (ndarray(n_wsbins, n_sectors)) – Wind speed frequencies, normalized 0-1.
wdfreq (ndarray(n_sectors)) – Wind direction frequencies, normalized 0-1.
wsbins (ndarray(n_wsbins+1)) – Wind speed bin edges (first element should be 0).
coords (dict) – Dictionary with “south_north”, “west_east”, “height”.
metadata (dict, optional) – Dictionary with “description”. Defaults to {“description”: “No Header”}.