bsrn.io.retrieval.download_bsrn_files#
- bsrn.io.retrieval.download_bsrn_files(filenames, local_dir, username, password, host='ftp.bsrn.awi.de', retries=3)[source]#
Download many BSRN files efficiently using a single FTP connection with robust retries.
- Parameters:
filenames (list of str) – List of filenames to download (e.g., [‘pay0123.dat.gz’]).
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.
retries (int, default 3) – Number of retry attempts for both connection and file transfer errors.
- Returns:
downloaded_paths – List of paths to the downloaded files.
- Return type: