bsrn.io.retrieval.download_bsrn_mon#

bsrn.io.retrieval.download_bsrn_mon(stations, year, month, local_dir, username, password, host='ftp.bsrn.awi.de')[source]#

Download station-to-archive files for multiple stations for a specific month and year.

Parameters:
  • stations (list of str) – List of station abbreviations (e.g., [‘pay’, ‘nya’]).

  • year (int or str) – Four-digit year (e.g., 2024 or ‘2024’).

  • month (int or str) – Month number or string (1-12 or ‘01’-‘12’).

  • local_dir (str) – The local directory to save the files.

  • username (str) – BSRN FTP username.

  • password (str) – BSRN FTP password.

  • host (str, default BSRN_FTP_HOST) – FTP host address.

Returns:

downloaded_paths – List of paths to the downloaded files.

Return type:

list