bsrn.io.retrieval.months_from_ftp_filenames#

bsrn.io.retrieval.months_from_ftp_filenames(filenames)[source]#

Extract a unique set of (year, month) tuples from a list of BSRN filenames. 从 BSRN 文件名列表中提取唯一的 (年, 月) 元组集合。

Parameters:

filenames (list of str) – List of filenames from BSRN FTP. BSRN FTP 文件名列表。

Returns:

months – Sorted list of (year, month) tuples. 排序后的 (年, 月) 元组列表。

Return type:

list of tuple