windkit.bwc_to_file

windkit.bwc_to_file(bwc, filename, *, file_format='infer', **kwargs)[source]

Write binned wind climate to file.

Parameters:
  • bwc (xr.Dataset) – Binned wind climate xr.Dataset object.

  • filename (str or pathlib.Path) – Path to the file to write the binned wind climate to.

  • file_format (str) – The file format of the output file. If ‘infer’, the file format will be inferred from the file extension. Supported formats are ‘tab’. Defaults to ‘infer’.

  • **kwargs (dict) – Additional keyword arguments to pass to the writing function.