Skip to content

Commit 12d8295

Browse files
authored
Correct "Wind Speed" to "Wind Speed Units" in PSM3 (#1375)
* Correct "Wind Speed" to "Wind Speed Units" * Add whatsnew entry
1 parent 55af160 commit 12d8295

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Bug fixes
2222
argument was not being passed to the ``optimalinclination`` request parameter (:pull:`1356`)
2323
* Fixed bug in :py:func:`pvlib.bifacial.pvfactors_timeseries` where scalar ``surface_tilt``
2424
and ``surface_azimuth`` inputs caused an error (:issue:`1127`, :issue:`1332`, :pull:`1361`)
25-
25+
* Changed the metadata entry for the wind speed unit to "Wind Speed Units" in
26+
the PSM3 iotools function (:pull:`1375`)
2627

2728
Testing
2829
~~~~~~~

pvlib/data/test_read_psm3.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Source,Location ID,City,State,Country,Latitude,Longitude,Time Zone,Elevation,Local Time Zone,Clearsky DHI Units,Clearsky DNI Units,Clearsky GHI Units,Dew Point Units,DHI Units,DNI Units,GHI Units,Solar Zenith Angle Units,Temperature Units,Pressure Units,Relative Humidity Units,Precipitable Water Units,Wind Direction Units,Wind Speed,Cloud Type -15,Cloud Type 0,Cloud Type 1,Cloud Type 2,Cloud Type 3,Cloud Type 4,Cloud Type 5,Cloud Type 6,Cloud Type 7,Cloud Type 8,Cloud Type 9,Cloud Type 10,Cloud Type 11,Cloud Type 12,Fill Flag 0,Fill Flag 1,Fill Flag 2,Fill Flag 3,Fill Flag 4,Fill Flag 5,Surface Albedo Units,Version
1+
Source,Location ID,City,State,Country,Latitude,Longitude,Time Zone,Elevation,Local Time Zone,Clearsky DHI Units,Clearsky DNI Units,Clearsky GHI Units,Dew Point Units,DHI Units,DNI Units,GHI Units,Solar Zenith Angle Units,Temperature Units,Pressure Units,Relative Humidity Units,Precipitable Water Units,Wind Direction Units,Wind Speed Units,Cloud Type -15,Cloud Type 0,Cloud Type 1,Cloud Type 2,Cloud Type 3,Cloud Type 4,Cloud Type 5,Cloud Type 6,Cloud Type 7,Cloud Type 8,Cloud Type 9,Cloud Type 10,Cloud Type 11,Cloud Type 12,Fill Flag 0,Fill Flag 1,Fill Flag 2,Fill Flag 3,Fill Flag 4,Fill Flag 5,Surface Albedo Units,Version
22
NSRDB,155474,-,-,-,40.53,-108.54,-7,2133,-7,w/m2,w/m2,w/m2,c,w/m2,w/m2,w/m2,Degree,c,mbar,%,cm,Degrees,m/s,N/A,Clear,Probably Clear,Fog,Water,Super-Cooled Water,Mixed,Opaque Ice,Cirrus,Overlapping,Overshooting,Unknown,Dust,Smoke,N/A,Missing Image,Low Irradiance,Exceeds Clearsky,Missing CLoud Properties,Rayleigh Violation,N/A,v3.0.1
33
Year,Month,Day,Hour,Minute,DHI,DNI,GHI,Clearsky DHI,Clearsky DNI,Clearsky GHI,Cloud Type,Dew Point,Solar Zenith Angle,Fill Flag,Surface Albedo,Wind Speed,Precipitable Water,Wind Direction,Relative Humidity,Temperature,Pressure,,,,,,,,,,,,,,,,,,,,,,,,
44
2017,1,1,0,0,0,0,0,0,0,0,1,-10,162.05,0,0.866,0.3,0.417,166.4,74.79,-8,780,,,,,,,,,,,,,,,,,,,,,,,,

pvlib/iotools/psm3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def parse_psm3(fbuf):
223223
* Relative Humidity Units
224224
* Precipitable Water Units
225225
* Wind Direction Units
226-
* Wind Speed
226+
* Wind Speed Units
227227
* Cloud Type -15
228228
* Cloud Type 0
229229
* Cloud Type 1

pvlib/tests/iotools/test_psm3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
'Longitude', 'Time Zone', 'Elevation', 'Local Time Zone',
2323
'Dew Point Units', 'DHI Units', 'DNI Units', 'GHI Units',
2424
'Temperature Units', 'Pressure Units', 'Wind Direction Units',
25-
'Wind Speed', 'Surface Albedo Units', 'Version']
25+
'Wind Speed Units', 'Surface Albedo Units', 'Version']
2626
PVLIB_EMAIL = '[email protected]'
2727

2828

0 commit comments

Comments
 (0)