bsrn.io.retrieval.get_bsrn_file_inventory#

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

Connects to bsrn ftp and lists available station-to-archive files. 连接到 BSRN FTP 并列出可用的站点存档文件。

Parameters:
  • stations (list) – List of station abbreviations (e.g., [‘PAY’, ‘NYA’]). 站点缩写列表(例如 [‘PAY’, ‘NYA’])。

  • 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:

inventory – Mapping of station abbreviations to lists of filenames. 站点缩写到文件名列表的映射。

Return type:

dict

References