Skip to content

Commit c6ba6ed

Browse files
authored
Update PVGIS TMY tests and files (#2222)
* Update PVGIS TMY tests and files * Update docs/sphinx/source/whatsnew/v0.11.1.rst
1 parent 52afdcf commit c6ba6ed

13 files changed

+35126
-35185
lines changed

docs/sphinx/source/whatsnew/v0.11.1.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ Bug fixes
5555

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

5962

6063
Documentation

pvlib/data/pvgis_tmy_meta.json

Lines changed: 32 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,32 @@
1-
{
2-
"inputs": {
3-
"location": {
4-
"description": "Selected location",
5-
"variables": {
6-
"latitude": {
7-
"description": "Latitude",
8-
"units": "decimal degree"
9-
},
10-
"longitude": {
11-
"description": "Longitude",
12-
"units": "decimal degree"
13-
},
14-
"elevation": {
15-
"description": "Elevation",
16-
"units": "m"
17-
}
18-
}
19-
},
20-
"meteo_data": {
21-
"description": "Sources of meteorological data",
22-
"variables": {
23-
"radiation_db": {
24-
"description": "Solar radiation database"
25-
},
26-
"meteo_db": {
27-
"description": "Database used for meteorological variables other than solar radiation"
28-
},
29-
"year_min": {
30-
"description": "First year of the calculations"
31-
},
32-
"year_max": {
33-
"description": "Last year of the calculations"
34-
},
35-
"use_horizon": {
36-
"description": "Include horizon shadows"
37-
},
38-
"horizon_db": {
39-
"description": "Source of horizon data"
40-
}
41-
}
42-
}
43-
},
44-
"outputs": {
45-
"months_selected": {
46-
"type": "time series",
47-
"timestamp": "monthly",
48-
"description": "months selected for the TMY"
49-
},
50-
"tmy_hourly": {
51-
"type": "time series",
52-
"timestamp": "hourly",
53-
"variables": {
54-
"T2m": {
55-
"description": "2-m air temperature",
56-
"units": "degree Celsius"
57-
},
58-
"RH": {
59-
"description": "relative humidity",
60-
"units": "%"
61-
},
62-
"G(h)": {
63-
"description": "Global irradiance on the horizontal plane",
64-
"units": "W/m2"
65-
},
66-
"Gb(n)": {
67-
"description": "Beam/direct irradiance on a plane always normal to sun rays",
68-
"units": "W/m2"
69-
},
70-
"Gd(h)": {
71-
"description": "Diffuse irradiance on the horizontal plane",
72-
"units": "W/m2"
73-
},
74-
"IR(h)": {
75-
"description": "Surface infrared (thermal) irradiance on a horizontal plane",
76-
"units": "W/m2"
77-
},
78-
"WS10m": {
79-
"description": "10-m total wind speed",
80-
"units": "m/s"
81-
},
82-
"WD10m": {
83-
"description": "10-m wind direction (0 = N, 90 = E)",
84-
"units": "degree"
85-
},
86-
"SP": {
87-
"description": "Surface (air) pressure",
88-
"units": "Pa"
89-
}
90-
}
91-
}
92-
}
93-
}
1+
{"inputs": {"location": {"description": "Selected location",
2+
"variables": {"latitude": {"description": "Latitude",
3+
"units": "decimal degree"},
4+
"longitude": {"description": "Longitude", "units": "decimal degree"},
5+
"elevation": {"description": "Elevation", "units": "m"}}},
6+
"meteo_data": {"description": "Sources of meteorological data",
7+
"variables": {"radiation_db": {"description": "Solar radiation database"},
8+
"meteo_db": {"description": "Database used for meteorological variables other than solar radiation"},
9+
"year_min": {"description": "First year of the calculations"},
10+
"year_max": {"description": "Last year of the calculations"},
11+
"use_horizon": {"description": "Include horizon shadows"},
12+
"horizon_db": {"description": "Source of horizon data"}}}},
13+
"outputs": {"months_selected": {"type": "time series",
14+
"timestamp": "monthly",
15+
"description": "months selected for the TMY"},
16+
"tmy_hourly": {"type": "time series",
17+
"timestamp": "hourly",
18+
"variables": {"T2m": {"description": "2-m air temperature",
19+
"units": "degree Celsius"},
20+
"RH": {"description": "relative humidity", "units": "%"},
21+
"G(h)": {"description": "Global irradiance on the horizontal plane",
22+
"units": "W/m2"},
23+
"Gb(n)": {"description": "Beam/direct irradiance on a plane always normal to sun rays",
24+
"units": "W/m2"},
25+
"Gd(h)": {"description": "Diffuse irradiance on the horizontal plane",
26+
"units": "W/m2"},
27+
"IR(h)": {"description": "Surface infrared (thermal) irradiance on a horizontal plane",
28+
"units": "W/m2"},
29+
"WS10m": {"description": "10-m total wind speed", "units": "m/s"},
30+
"WD10m": {"description": "10-m wind direction (0 = N, 90 = E)",
31+
"units": "degree"},
32+
"SP": {"description": "Surface (air) pressure", "units": "Pa"}}}}}

0 commit comments

Comments
 (0)