bsrn.io.crs.fetch_crs_hf#
- bsrn.io.crs.fetch_crs_hf(index, station_code)[source]#
Fetch CRS from Hugging Face and return inputs aligned to target index.
- Parameters:
index (pd.DatetimeIndex) – Target time index to align CRS outputs to.
station_code (str) – BSRN station code (e.g., “QIQ”).
- Returns:
aligned – CRS inputs reindexed to index with columns ghi_crs, bni_crs, dhi_crs.
- Return type:
pd.DataFrame
- Raises:
ValueError – If
indexis not aDatetimeIndexor is empty.FileNotFoundError – From Hugging Face fetch helpers when a monthly parquet is unavailable.