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’]). 站点缩写列表(例如 [‘pay’, ‘nya’])。
year (int or str) – Four-digit year (e.g., 2024 or ‘2024’). 四位年份(例如 2024 或 ‘2024’)。
month (int or str) – Month number or string (1-12 or ‘01’-‘12’). 月份(1-12 或 ‘01’-‘12’)。
local_dir (str) – The local directory to save the files. 保存文件的本地目录。
username (str) – BSRN FTP username. BSRN FTP 用户名。
password (str) – BSRN FTP password. BSRN FTP 密码。
host (str, default BSRN_FTP_HOST) – FTP host address. FTP 主机地址。
- Returns:
downloaded_paths – List of paths to the downloaded files. 已下载文件的路径列表。
- Return type: