IO Tools#
Functions for retrieving, reading, and writing data from a variety of sources and file formats relevant to solar energy modeling. See also Weather data.
Gridded solar resource data#
Modeled irradiance and meteorological data, available for large regions of the world.
Public datasets#
These APIs are free to access, although some require registration.
PVGIS#
Multiple gridded irradiance datasets and weather data with global coverage.
|
Get TMY data from PVGIS. |
|
Read a file downloaded from PVGIS. |
|
Get hourly solar irradiation and modeled PV power output from PVGIS. |
|
Read a PVGIS hourly file. |
|
Get horizon data from PVGIS. |
CAMS#
Satellite-derived irradiance data for Europe, Africa, and Asia, and clear-sky irradiance globally.
|
Retrieve irradiance and clear-sky time series from CAMS. |
|
Read a file or file-like buffer with data in the format of a CAMS Radiation or McClear file. |
|
Deprecated since version 0.12.1. |
NSRDB#
Satellite-derived irradiance and weather data for the Americas.
|
Retrieve NSRDB PSM4 timeseries weather data from the PSM4 NSRDB GOES Aggregated v4 API. |
|
Retrieve NSRDB PSM4 timeseries weather data from the PSM4 NSRDB GOES TMY v4 API. |
|
Retrieve NSRDB PSM4 timeseries weather data from the PSM4 NSRDB GOES CONUS v4 API. |
|
Retrieve NSRDB PSM4 timeseries weather data from the PSM4 NSRDB GOES Full Disc v4 API. |
|
Read an NSRDB PSM4 weather file (formatted as SAM CSV). |
|
Retrieve NSRDB PSM3 timeseries weather data from the PSM3 API. |
|
Read an NSRDB PSM3 weather file (formatted as SAM CSV). |
|
Deprecated since version 0.12.1. |
Commercial datasets#
Accessing these APIs typically requires payment. Datasets provide near-global coverage.
SolarAnywhere#
|
Retrieve historical irradiance time series data from SolarAnywhere. |
|
Read a SolarAnywhere formatted file into a pandas DataFrame. |
Solcast#
|
Get irradiance and weather for a Typical Meteorological Year (TMY) at a requested location. |
|
Get historical irradiance and weather estimates. |
|
Get irradiance and weather forecasts from the present time up to 14 days ahead. |
|
Get irradiance and weather estimated actuals for near real-time and past 7 days. |
Solargis#
|
Retrieve irradiance time series data from Solargis. |
Ground station solar data#
Measurements from various networks of ground stations focusing on solar irradiance.
BSRN#
A global network dedicated to high-quality monitoring of solar and long-wave radiation.
|
Retrieve ground measured irradiance data from the BSRN FTP server. |
|
Read a BSRN station-to-archive file into a DataFrame. |
|
Parse a file-like buffer of a BSRN station-to-archive file. |
SOLRAD#
A solar radiation network in the USA, run by NOAA.
|
Read NOAA SOLRAD fixed-width file into pandas dataframe. |
|
Request data from NOAA SOLRAD and read it into a Dataframe. |
SURFRAD#
A solar radiation network in the USA, run by NOAA.
|
Read in a daily NOAA SURFRAD file. |
MIDC#
A solar radiation network in the USA, run by NREL.
|
Read in National Renewable Energy Laboratory Measurement and Instrumentation Data Center weather data. |
|
Request and read MIDC data directly from the raw data api. |
SRML#
A solar radiation network in the northwestern USA, run by the University of Oregon.
|
Read University of Oregon SRML 1min .tsv file into pandas dataframe. |
|
Request data from UoO SRML and read it into a Dataframe. |
Weather data#
Meteorological data from a variety of modeled and measured datasets.
ACIS#
A combination of many meteorological datasets providing temperature, precipitation, wind speed, and other weather measurements.
|
Retrieve estimated daily precipitation and temperature data from PRISM via the Applied Climate Information System (ACIS). |
|
Retrieve estimated daily precipitation and temperature data from the Northeast Regional Climate Center via the Applied Climate Information System (ACIS). |
|
Retrieve estimated daily Multi-sensor Precipitation Estimates via the Applied Climate Information System (ACIS). |
|
Retrieve weather station climate records via the Applied Climate Information System (ACIS). |
|
List weather stations in a given area available from the Applied Climate Information System (ACIS). |
CRN#
A network of ground stations from NOAA. Irradiance measurements are of lower quality.
|
Read a NOAA USCRN fixed-width file into a pandas dataframe. |
Generic data file readers#
Functions for reading irradiance/weather data files.
|
Read a TMY2 file into a DataFrame. |
|
Read a TMY3 file into a pandas dataframe. |
|
Read an EPW file in to a pandas dataframe. |
|
Given a file-like buffer with data in Energy Plus Weather (EPW) format, parse the data into a dataframe. |
|
Retrieve Module or Inverter data from a .pan or .ond text file, respectively. |
A Location
object may be created from metadata
in some files.
|
Create an object based on a metadata dictionary from tmy2 or tmy3 data readers. |
|
Create a Location object based on a metadata dictionary from epw data readers. |