Data Store Module

farmnet.data.data_store.kelmarsh_raw_data(download_path: str | Path, include: list[str]) None[source]

Download and prepare raw SCADA data for the Kelmarsh wind turbine site.

This function downloads specific data files from Zenodo and processes ZIP archives containing SCADA CSV files. If a consolidated raw CSV file does not already exist in the specified download_path, it will extract and combine the relevant CSV data from the provided ZIP files and save the result as kelmarsh_raw.csv.

Parameters:
  • download_path (str or pathlib.Path) – Path to the directory where files should be downloaded and stored.

  • include (list[str]) – List of ZIP filenames to be included in the processing.

Returns:

None

Return type:

None

Example

>>> from farmnet.data.download import get_data_home_folder
>>> from pathlib import Path
>>> import pathlib
>>> import os
>>> download_path = Path("./test_folder")
>>> file_name = "Kelmarsh_SCADA_2022_4457.zip"
>>> kelmarsh_raw_data(download_path, [file_name])
>>> zip_file = download_path / "Kelmarsh_SCADA_2022_4457.zip"
>>> zip_file.exists()
True
>>> raw_csv = download_path / "kelmarsh_raw.csv"
>>> raw_csv.exists()
True
>>> static_csv = download_path / "Kelmarsh_WT_static.csv"
>>> static_csv.exists()
True
>>> os.remove(raw_csv)
>>> os.remove(static_csv)
>>> os.remove(zip_file)
>>> download_path.rmdir()