bsrn.io.crs.check_crs_availability#
- bsrn.io.crs.check_crs_availability(stations, username, password)[source]#
Check which BSRN stations are geographically covered by CAMS Radiation Service (CRS) and have BSRN archive files overlapping the CRS temporal range. 检查哪些 BSRN 站点在 CAMS 辐射服务 (CRS) 的地理覆盖范围内,**且**其 BSRN 存档文件 与 CRS 的年份范围存在交集。
Workflow: 1. Filter stations by spatial coverage (MSG and Himawari disks). 2. Query BSRN FTP for the covered subset to obtain file inventories. 3. Extract years from filenames and intersect with the CRS year range.
- Parameters:
- Returns:
availability – A dictionary mapping station codes to availability metadata:
{station_code: {'years': [list of years], 'months': [list of (y,m) tuples]}}.yearsis used for bulk API downloads, andmonthsfor monthly parquet writing. Stations with no overlap are omitted.{站点代码: {'years': [年份列表], 'months': [(年, 月) 元组列表]}}。years用于批量下载,months用于生成月度 parquet。无交集站点被省略。- Return type: