10000 update forecast RAP model variable name (#241) · SolarCity1/pvlib-python@5b02d1f · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b02d1f

Browse files
authored
update forecast RAP model variable name (pvlib#241)
* try using conda-forge again * no versions * update rap total clouds field name * add note about panoply * reset doc env * switch rap to nam in doc * update whatsnew
1 parent e0c3a63 commit 5b02d1f

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

docs/sphinx/source/forecasts.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ state-of-the-art of solar power forecasting.
1717
pvlib-python uses Unidata's `Siphon
1818
<http://siphon.readthedocs.org/en/latest/>`_ library to simplify access
1919
to forecast data hosted on the Unidata `THREDDS catalog
20-
<http://thredds.ucar.edu/thredds/catalog.html>`_.
20+
<http://thredds.ucar.edu/thredds/catalog.html>`_. Siphon is great for
21+
programatic access of THREDDS data, but we also recommend using tools
22+
such as `Panoply <http://www.giss.nasa.gov/tools/panoply/>`_
23+
to easily browse the catalog and become more familiar with its contents.
2124

2225
This document demonstrates how to use pvlib-python to create a PV power
2326
forecast using these tools. The `forecast
@@ -52,7 +55,7 @@ same quantity (or a very similar one), and not all variables are present
5255
in all models. For example, on the THREDDS server, the GFS has a field
5356
named
5457
``Total_cloud_cover_entire_atmosphere_Mixed_intervals_Average``,
55-
while the RAP has a field named
58+
while the NAM has a field named
5659
``Total_cloud_cover_entire_atmosphere_single_layer``, and a
5760
similar field in the HRRR is named
5861
``Total_cloud_cover_entire_atmosphere``.

docs/sphinx/source/whatsnew/v0.4.1.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Bug fixes
1212

1313
* Fixed an error in the irradiance.klucher transposition model.
1414
The error was introduced in version 0.4.0. (:issue:`228`)
15+
* Update RAP forecast model variable names. (:issue:`241`)
1516

1617

1718
Documentation
@@ -26,3 +27,4 @@ Code Contributors
2627

2728
* Mark Mikofski
2829
* Johannes Dollinger
30+
* Will Holmgren

pvlib/forecast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ def __init__(self, resolution='20', set_type='best'):
10701070
self.variables = {
10711071
'temp_air': 'Temperature_surface',
10721072
'wind_speed_gust': 'Wind_speed_gust_surface',
1073-
'total_clouds': 'Total_cloud_cover_entire_atmosphere_single_layer',
1073+
'total_clouds': 'Total_cloud_cover_entire_atmosphere',
10741074
'low_clouds': 'Low_cloud_cover_low_cloud',
10751075
'mid_clouds': 'Medium_cloud_cover_middle_cloud',
10761076
'high_clouds': 'High_cloud_cover_high_cloud', }

pvlib/test/test_forecast.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
_start = pd.Timestamp.now(tz=_tz)
3030
_end = _start + pd.Timedelta(days=1)
3131
_modelclasses = [
32-
GFS, NAM, HRRR, RAP, NDFD,
32+
GFS, NAM, HRRR, NDFD, RAP,
3333
pytest.mark.xfail(HRRR_ESRL, reason="HRRR_ESRL is unreliable")]
3434
_working_models = []
3535
_variables = ['temp_air', 'wind_speed', 'total_clouds', 'low_clouds',
@@ -62,14 +62,14 @@ def test_process_data(model):
6262

6363
@requires_siphon
6464
def test_vert_level():
65-
amodel = RAP()
65+
amodel = NAM()
6666
vert_level = 5000
6767
data = amodel.get_processed_data(_latitude, _longitude, _start, _end,
6868
vert_level=vert_level)
6969

7070
@requires_siphon
7171
def test_datetime():
72-
amodel = RAP()
72+
amodel = NAM()
7373
start = datetime.now()
7474
end = start + timedelta(days=1)
7575
data = amodel.get_processed_data(_latitude, _longitude , start, end)

0 commit comments

Comments
 (0)
0