brightwind.export.export.export_tab_file¶
-
brightwind.export.export.
export_tab_file
(freq_tab, height, lat, long, file_name=None, folder_path=None, dir_offset=0.0)¶ Export a WaSP tab file using the output from the freq_table() function.
- Parameters
freq_tab – Frequency distribution by wind speed and direction sector. Data output from the bw.freq_table().
height (float) – Height that the freq table represents in meters.
lat (float) – Latitude of the measurement location.
long (float) – Longitude of the measurement location.
file_name (str) – The file name under which the tab file will be saved, or use the default, i.e ‘2019-06-07_brightwind_tab_export.tab’
folder_path (str) – The directory where the tab file will be saved, default is the working directory.
dir_offset (float) – Direction offset, default 0.0.
- Returns
Creates a WAsP frequency tab file which can be used in the WAsP, WindFarmer and openWind software.
Example Usage
import brightwind as bw df = bw.load_campbell_scientific(bw.datasets.demo_campbell_scientific_site_data) wind_rose, freq_tab = bw.freq_table(df.Spd80mN, df.Dir78mS, return_data=True) bw.export_tab_file(freq_tab, 80, 54.2, -7.6, file_name='campbell_tab_file', folder_path=r'C:\some\folder\')