solarforecastarbiter.io.fetch.pvdaq.get_pvdaq_data¶
-
solarforecastarbiter.io.fetch.pvdaq.
get_pvdaq_data
(system_id, year, api_key='DEMO_KEY')[source]¶ Query PV system data from NREL’s PVDAQ data service:
This function uses the annual raw data file API, which is the most efficient way of accessing multi-year, sub-hourly time series data.
Parameters: - system_id (int) – The system ID corresponding to the site that data should be queried from.
- year (int or list of ints) – Either the year to request or the list of years to request. Multiple years will be concatenated into a single DataFrame.
- api_key (string) – Your NREL API key (https://developer.nrel.gov/docs/api-key/)
Returns: pandas.DataFrame – A DataFrame containing the time series data from the PVDAQ service over the years requested. Times are typically in local time.
Notes
The PVDAQ metadata contains a key “available_years” that is a useful value for the year argument.