bsrn.io.nsrdb.download_nsrdb#
- bsrn.io.nsrdb.download_nsrdb(latitude, longitude, year, api_key, email, variant='conus', timeout=120)[source]#
Download NSRDB data from NLR API.
- Parameters:
latitude (float) – Site latitude [degrees].
longitude (float) – Site longitude [degrees].
year (int) – Calendar year to download.
api_key (str) – NLR developer API key.
email (str) – User email registered with the API.
variant (str, default
"conus") – NSRDB variant name (seeNSRDB_VARIANTS).timeout (int, default 120) – HTTP request timeout [s].
- Returns:
df – NSRDB irradiance columns for the requested year.
- Return type:
pd.DataFrame
- Raises:
ValueError – If year is outside the variant’s year range.
ValueError – If the location is not within the variant’s spatial coverage.
References