I/O Operations#
Readers#
Reading .dat.gz archive files is now handled by
bsrn.dataset.BSRNDataset.from_file().
|
Parse a BSRN |
Data Fetching#
Connects to bsrn ftp and lists available station-to-archive files. |
|
Download a single BSRN file by specifying station, year, and month. |
|
|
Download all available station-to-archive files for a specific station. |
|
Download station-to-archive files for multiple stations for a specific month and year. |
|
Download many BSRN files efficiently using a single FTP connection with robust retries. |
|
Retrieve and align McClear data to a target DatetimeIndex. |
|
Fetch MERRA-2 from Hugging Face and return REST2-ready inputs aligned to target index. |
CAMS Radiation Service (CRS)#
|
Check which BSRN stations are geographically covered by CAMS Radiation Service (CRS) and have BSRN archive files overlapping the CRS temporal range. |
|
Download and parse CAMS Radiation Service (CRS) time series from SoDa. |
|
Fetch CRS from Hugging Face and return inputs aligned to target index. |
|
Adds CRS (CAMS Radiation Service) all-sky columns to a DataFrame. |
NSRDB (National Solar Radiation Database)#
Check which BSRN stations are geographically covered by an NSRDB variant and have BSRN archive files overlapping the variant's year range. |
|
|
Download NSRDB data from NLR API. |
|
Fetch NSRDB from Hugging Face aligned to target index. |
|
Adds NSRDB all-sky columns to a DataFrame. |
BSRN Inventory Helpers#
|
Extract station code, year, month, and optional suffix from a filename. |
Extract a unique set of (year, month) tuples from a list of BSRN filenames. |