Skip to content

Commit

Permalink
Update PVGIS TMY tests and files (#2222)
Browse files Browse the repository at this point in the history
* Update PVGIS TMY tests and files

* Update docs/sphinx/source/whatsnew/v0.11.1.rst
  • Loading branch information
AdamRJensen authored Sep 26, 2024
1 parent 52afdcf commit c6ba6ed
Show file tree
Hide file tree
Showing 13 changed files with 35,126 additions and 35,185 deletions.
3 changes: 3 additions & 0 deletions docs/sphinx/source/whatsnew/v0.11.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ Bug fixes

Testing
~~~~~~~
* Updated the tests for :py:func:`~pvlib.iotools.get_pvgis_tmy`
and :py:func:`~pvlib.iotools.read_pvgis_tmy` as the default
API endpoint has changed from 5.1 to 5.2. (:pull:`2222`)


Documentation
Expand Down
125 changes: 32 additions & 93 deletions pvlib/data/pvgis_tmy_meta.json
Original file line number Diff line number Diff line change
@@ -1,93 +1,32 @@
{
"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"
}
}
}
},
"outputs": {
"months_selected": {
"type": "time series",
"timestamp": "monthly",
"description": "months selected for the TMY"
},
"tmy_hourly": {
"type": "time series",
"timestamp": "hourly",
"variables": {
"T2m": {
"description": "2-m air temperature",
"units": "degree Celsius"
},
"RH": {
"description": "relative humidity",
"units": "%"
},
"G(h)": {
"description": "Global irradiance on the horizontal plane",
"units": "W/m2"
},
"Gb(n)": {
"description": "Beam/direct irradiance on a plane always normal to sun rays",
"units": "W/m2"
},
"Gd(h)": {
"description": "Diffuse irradiance on the horizontal plane",
"units": "W/m2"
},
"IR(h)": {
"description": "Surface infrared (thermal) irradiance on a horizontal plane",
"units": "W/m2"
},
"WS10m": {
"description": "10-m total wind speed",
"units": "m/s"
},
"WD10m": {
"description": "10-m wind direction (0 = N, 90 = E)",
"units": "degree"
},
"SP": {
"description": "Surface (air) pressure",
"units": "Pa"
}
}
}
}
}
{"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"}}}},
"outputs": {"months_selected": {"type": "time series",
"timestamp": "monthly",
"description": "months selected for the TMY"},
"tmy_hourly": {"type": "time series",
"timestamp": "hourly",
"variables": {"T2m": {"description": "2-m air temperature",
"units": "degree Celsius"},
"RH": {"description": "relative humidity", "units": "%"},
"G(h)": {"description": "Global irradiance on the horizontal plane",
"units": "W/m2"},
"Gb(n)": {"description": "Beam/direct irradiance on a plane always normal to sun rays",
"units": "W/m2"},
"Gd(h)": {"description": "Diffuse irradiance on the horizontal plane",
"units": "W/m2"},
"IR(h)": {"description": "Surface infrared (thermal) irradiance on a horizontal plane",
"units": "W/m2"},
"WS10m": {"description": "10-m total wind speed", "units": "m/s"},
"WD10m": {"description": "10-m wind direction (0 = N, 90 = E)",
"units": "degree"},
"SP": {"description": "Surface (air) pressure", "units": "Pa"}}}}}
Loading

0 comments on commit c6ba6ed

Please sign in to comment.