-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add getter/parser for PVGIS hourly-radiation #1186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 28 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
f8e6d6f
Add pvgis.get_pvgis_hourly function
23b65f7
Update documentation
53de6fe
Add parser for pvgis_hourly csv and basic
9e50c6a
Update variable map and documentation
AdamRJensen a0ad2bb
Update whatsnew, api.rst, and __init__
AdamRJensen 3b41120
Add read_pvgis_hourly
AdamRJensen dea2a17
Update input and output names
AdamRJensen 1ce1697
Add cams.get_cams_radiation function
334a997
Revert "Add cams.get_cams_radiation function"
b416f62
Add requests-mock to CI files
AdamRJensen fb8e1dc
Revert "Add requests-mock to CI files"
AdamRJensen 0578594
Merge remote-tracking branch 'upstream/master' into pvgis_hourly
AdamRJensen 7612640
Add tests and test files
AdamRJensen 902ed2b
Fix stickler
AdamRJensen 8a3d236
Parametrize read_pvgis_hourly tests
AdamRJensen b2e7ee3
Add test for metadata assertion
AdamRJensen a3f54cb
Add test documentation
AdamRJensen e65bd4c
Fixed minor documentation issues
AdamRJensen 1c03e85
Remove basic parser and add bad extension test
AdamRJensen 7563d28
Add TypeError test and minor doc fixes
AdamRJensen de6ebc9
Fix stickler
AdamRJensen 8095d61
Fix stickler again
AdamRJensen 9b1ae98
Add tests for get_pvgis_hourly
AdamRJensen 52fa8d2
Add tests for HTTPError message with json
AdamRJensen ed709cf
Fix documentation issues
AdamRJensen 5b89dba
Update data columns data
AdamRJensen 70e58b3
Change asterisk to dagger symbol in data table
AdamRJensen 76f5849
Update documentation
AdamRJensen a6e7f36
Rename poa_sky_diffuse and minor doc fixes
AdamRJensen 7fd98f0
Update whatsnew description
AdamRJensen 1223be6
Refactor test_read_pvgis_hourly
AdamRJensen 434b751
Coverage for userhorizon, usehorizon, & optimal_surface_tilt
AdamRJensen d37f3cc
Add inputs to params dict instead of if statements
AdamRJensen 98fb5f1
Fix stickler
AdamRJensen cd13cda
Doc. update & refactoring of start/end
AdamRJensen aad4f4d
Reorder inputs & capitalize input descriptions
AdamRJensen 116c427
Use .strip() instead of replace('\r\n','')
AdamRJensen 1a0f428
Update pvgis.py
AdamRJensen 5ffceda
Raise ValueError for invalid outputformat
AdamRJensen ff90411
Coverage for bad outputformat
AdamRJensen 0faeeb8
Minor doc fixes
AdamRJensen 919fb8d
Change 'not relevant' to 'ignored'
AdamRJensen b52a8d9
Have get function call read function, instead of individual parse fun…
AdamRJensen 9db8591
Raise ValueError if no data section is detected
AdamRJensen cc67fc1
Coverage for empty file passed to read_pvgis_hourly
AdamRJensen 16d9cba
Add info box concerning databases and timestamps
AdamRJensen bf6712f
Update admonition
AdamRJensen 00139f2
Change admonition style to 'attention'
AdamRJensen 88734c7
Update admonition
AdamRJensen 73d046a
Admonition update
AdamRJensen 84449ac
Fix admonition
AdamRJensen ac19b9d
Refactor start input
AdamRJensen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
pvlib/data/pvgis_hourly_Timeseries_45.000_8.000_CM_10kWp_CIS_5_2a_2013_2014.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"inputs": {"location": {"latitude": 45.0, "longitude": 8.0, "elevation": 250.0}, "meteo_data": {"radiation_db": "PVGIS-CMSAF", "meteo_db": "ERA-Interim", "year_min": 2013, "year_max": 2014, "use_horizon": true, "horizon_db": null, "horizon_data": "DEM-calculated"}, "mounting_system": {"two_axis": {"slope": {"value": "-", "optimal": "-"}, "azimuth": {"value": "-", "optimal": "-"}}}, "pv_module": {"technology": "CIS", "peak_power": 10.0, "system_loss": 5.0}}, "outputs": {"hourly": [{"time": "20130101:0055", "P": 0.0, "Gb(i)": 0.0, "Gd(i)": 0.0, "Gr(i)": 0.0, "H_sun": 0.0, "T2m": 3.01, "WS10m": 1.23, "Int": 0.0}, {"time": "20130101:0155", "P": 0.0, "Gb(i)": 0.0, "Gd(i)": 0.0, "Gr(i)": 0.0, "H_sun": 0.0, "T2m": 2.22, "WS10m": 1.46, "Int": 0.0}, {"time": "20130101:0255", "P": 0.0, "Gb(i)": 0.0, "Gd(i)": 0.0, "Gr(i)": 0.0, "H_sun": 0.0, "T2m": 1.43, "WS10m": 1.7, "Int": 0.0}, {"time": "20130101:0355", "P": 0.0, "Gb(i)": 0.0, "Gd(i)": 0.0, "Gr(i)": 0.0, "H_sun": 0.0, "T2m": 0.64, "WS10m": 1.93, "Int": 0.0}, {"time": "20130101:0455", "P": 0.0, "Gb(i)": 0.0, "Gd(i)": 0.0, "Gr(i)": 0.0, "H_sun": 0.0, "T2m": 0.77, "WS10m": 1.8, "Int": 0.0}, {"time": "20130101:0555", "P": 0.0, "Gb(i)": 0.0, "Gd(i)": 0.0, "Gr(i)": 0.0, "H_sun": 0.0, "T2m": 0.91, "WS10m": 1.66, "Int": 0.0}, {"time": "20130101:0655", "P": 0.0, "Gb(i)": 0.0, "Gd(i)": 0.0, "Gr(i)": 0.0, "H_sun": 0.0, "T2m": 1.05, "WS10m": 1.53, "Int": 0.0}, {"time": "20130101:0755", "P": 3464.5, "Gb(i)": 270.35, "Gd(i)": 91.27, "Gr(i)": 6.09, "H_sun": 6.12, "T2m": 1.92, "WS10m": 1.44, "Int": 0.0}, {"time": "20130101:0855", "P": 1586.9, "Gb(i)": 80.76, "Gd(i)": 83.95, "Gr(i)": 9.04, "H_sun": 13.28, "T2m": 2.79, "WS10m": 1.36, "Int": 0.0}, {"time": "20130101:0955", "P": 713.3, "Gb(i)": 5.18, "Gd(i)": 70.57, "Gr(i)": 7.31, "H_sun": 18.56, "T2m": 3.66, "WS10m": 1.27, "Int": 0.0}]}, "meta": {"inputs": {"location": {"description": "Selected location", "variables": {"latitude": {"description": "Latitude", "units": "decimal degree"}, "longitude": {"description": "Longitude", "units": "decimal degree"}, "elevation": {"description": "Elevation", "units": "m"}}}, "meteo_data": {"description": "Sources of meteorological data", "variables": {"radiation_db": {"description": "Solar radiation database"}, "meteo_db": {"description": "Database used for meteorological variables other than solar radiation"}, "year_min": {"description": "First year of the calculations"}, "year_max": {"description": "Last year of the calculations"}, "use_horizon": {"description": "Include horizon shadows"}, "horizon_db": {"description": "Source of horizon data"}}}, "mounting_system": {"description": "Mounting system", "choices": "fixed, vertical_axis, inclined_axis, two_axis", "fields": {"slope": {"description": "Inclination angle from the horizontal plane", "units": "degree"}, "azimuth": {"description": "Orientation (azimuth) angle of the (fixed) PV system (0 = S, 90 = W, -90 = E)", "units": "degree"}}}, "pv_module": {"description": "PV module parameters", "variables": {"technology": {"description": "PV technology"}, "peak_power": {"description": "Nominal (peak) power of the PV module", "units": "kW"}, "system_loss": {"description": "Sum of system losses", "units": "%"}}}}, "outputs": {"hourly": {"type": "time series", "timestamp": "hourly averages", "variables": {"P": {"description": "PV system power", "units": "W"}, "Gb(i)": {"description": "Beam (direct) irradiance on the inclined plane (plane of the array)", "units": "W/m2"}, "Gd(i)": {"description": "Diffuse irradiance on the inclined plane (plane of the array)", "units": "W/m2"}, "Gr(i)": {"description": "Reflected irradiance on the inclined plane (plane of the array)", "units": "W/m2"}, "H_sun": {"description": "Sun height", "units": "degree"}, "T2m": {"description": "2-m air temperature", "units": "degree Celsius"}, "WS10m": {"description": "10-m total wind speed", "units": "m/s"}, "Int": {"description": "1 means solar radiation values are reconstructed"}}}}}} |
35 changes: 35 additions & 0 deletions
35
pvlib/data/pvgis_hourly_Timeseries_45.000_8.000_SA_30deg_0deg_2016_2016.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Latitude (decimal degrees): 45.000 | ||
Longitude (decimal degrees): 8.000 | ||
Elevation (m): 250 | ||
Radiation database: PVGIS-SARAH | ||
|
||
|
||
Slope: 30 deg. | ||
Azimuth: 0 deg. | ||
time,Gb(i),Gd(i),Gr(i),H_sun,T2m,WS10m,Int | ||
20160101:0010,0.0,0.0,0.0,0.0,3.44,1.43,0.0 | ||
20160101:0110,0.0,0.0,0.0,0.0,2.94,1.47,0.0 | ||
20160101:0210,0.0,0.0,0.0,0.0,2.43,1.51,0.0 | ||
20160101:0310,0.0,0.0,0.0,0.0,1.93,1.54,0.0 | ||
20160101:0410,0.0,0.0,0.0,0.0,2.03,1.62,0.0 | ||
20160101:0510,0.0,0.0,0.0,0.0,2.14,1.69,0.0 | ||
20160101:0610,0.0,0.0,0.0,0.0,2.25,1.77,0.0 | ||
20160101:0710,0.0,0.0,0.0,0.0,3.06,1.49,0.0 | ||
20160101:0810,26.71,8.28,0.21,8.06,3.87,1.22,1.0 | ||
20160101:0910,14.69,5.76,0.16,14.8,4.67,0.95,1.0 | ||
20160101:1010,2.19,0.94,0.03,19.54,5.73,0.77,1.0 | ||
20160101:1110,2.11,0.94,0.03,21.82,6.79,0.58,1.0 | ||
20160101:1210,4.25,1.88,0.05,21.41,7.84,0.4,1.0 | ||
20160101:1310,0.0,0.0,0.0,0.0,7.43,0.72,0.0 | ||
|
||
Gb(i): Beam (direct) irradiance on the inclined plane (plane of the array) (W/m2) | ||
Gd(i): Diffuse irradiance on the inclined plane (plane of the array) (W/m2) | ||
Gr(i): Reflected irradiance on the inclined plane (plane of the array) (W/m2) | ||
H_sun: Sun height (degree) | ||
T2m: 2-m air temperature (degree Celsius) | ||
WS10m: 10-m total wind speed (m/s) | ||
Int: 1 means solar radiation values are reconstructed | ||
|
||
|
||
|
||
PVGIS (c) European Union, 2001-2021 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.