Skip to content

Commit 9635a40

Browse files
hamiltonkibbecwhanse
authored andcommitted
Fix typo in TMY total sky cover uncertainty column name (pvlib#831)
* Fix Typo in in Cloud cover uncertainty column name * Fix alignment in docstring
1 parent a9ff286 commit 9635a40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pvlib/iotools/tmy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def read_tmy3(filename=None, coerce_year=None, recolumn=True):
9494
TMYData.ZenithlumUncertainty Uncertainty based on random and bias error estimates see [1] section 2.10
9595
TMYData.TotCld Amount of sky dome covered by clouds or obscuring phenonema at time stamp, tenths of sky
9696
TMYData.TotCldSource See [1], Table 1-5, 8760x1 cell array of strings
97-
TMYData.TotCldUnertainty See [1], Table 1-6
97+
TMYData.TotCldUncertainty See [1], Table 1-6
9898
TMYData.OpqCld Amount of sky dome covered by clouds or obscuring phenonema that prevent observing the sky at time stamp, tenths of sky
9999
TMYData.OpqCldSource See [1], Table 1-5, 8760x1 cell array of strings
100100
TMYData.OpqCldUncertainty See [1], Table 1-6
@@ -246,7 +246,7 @@ def _recolumn(tmy3_dataframe):
246246
'DNillum', 'DNillumSource', 'DNillumUncertainty', 'DHillum',
247247
'DHillumSource', 'DHillumUncertainty', 'Zenithlum',
248248
'ZenithlumSource', 'ZenithlumUncertainty', 'TotCld', 'TotCldSource',
249-
'TotCldUnertainty', 'OpqCld', 'OpqCldSource', 'OpqCldUncertainty',
249+
'TotCldUncertainty', 'OpqCld', 'OpqCldSource', 'OpqCldUncertainty',
250250
'DryBulb', 'DryBulbSource', 'DryBulbUncertainty', 'DewPoint',
251251
'DewPointSource', 'DewPointUncertainty', 'RHum', 'RHumSource',
252252
'RHumUncertainty', 'Pressure', 'PressureSource',
@@ -346,7 +346,7 @@ def read_tmy2(filename):
346346
ZenithlumUncertainty See [1], Table 3-4
347347
TotCld Amount of sky dome covered by clouds or obscuring phenonema at time stamp, tenths of sky
348348
TotCldSource See [1], Table 3-5, 8760x1 cell array of strings
349-
TotCldUnertainty See [1], Table 3-6
349+
TotCldUncertainty See [1], Table 3-6
350350
OpqCld Amount of sky dome covered by clouds or obscuring phenonema that prevent observing the sky at time stamp, tenths of sky
351351
OpqCldSource See [1], Table 3-5, 8760x1 cell array of strings
352352
OpqCldUncertainty See [1], Table 3-6
@@ -406,7 +406,7 @@ def read_tmy2(filename):
406406

407407
# paste in the column info as one long line
408408
string = '%2d%2d%2d%2d%4d%4d%4d%1s%1d%4d%1s%1d%4d%1s%1d%4d%1s%1d%4d%1s%1d%4d%1s%1d%4d%1s%1d%2d%1s%1d%2d%1s%1d%4d%1s%1d%4d%1s%1d%3d%1s%1d%4d%1s%1d%3d%1s%1d%3d%1s%1d%4d%1s%1d%5d%1s%1d%10d%3d%1s%1d%3d%1s%1d%3d%1s%1d%2d%1s%1d' # noqa: E501
409-
columns = 'year,month,day,hour,ETR,ETRN,GHI,GHISource,GHIUncertainty,DNI,DNISource,DNIUncertainty,DHI,DHISource,DHIUncertainty,GHillum,GHillumSource,GHillumUncertainty,DNillum,DNillumSource,DNillumUncertainty,DHillum,DHillumSource,DHillumUncertainty,Zenithlum,ZenithlumSource,ZenithlumUncertainty,TotCld,TotCldSource,TotCldUnertainty,OpqCld,OpqCldSource,OpqCldUncertainty,DryBulb,DryBulbSource,DryBulbUncertainty,DewPoint,DewPointSource,DewPointUncertainty,RHum,RHumSource,RHumUncertainty,Pressure,PressureSource,PressureUncertainty,Wdir,WdirSource,WdirUncertainty,Wspd,WspdSource,WspdUncertainty,Hvis,HvisSource,HvisUncertainty,CeilHgt,CeilHgtSource,CeilHgtUncertainty,PresentWeather,Pwat,PwatSource,PwatUncertainty,AOD,AODSource,AODUncertainty,SnowDepth,SnowDepthSource,SnowDepthUncertainty,LastSnowfall,LastSnowfallSource,LastSnowfallUncertaint' # noqa: E501
409+
columns = 'year,month,day,hour,ETR,ETRN,GHI,GHISource,GHIUncertainty,DNI,DNISource,DNIUncertainty,DHI,DHISource,DHIUncertainty,GHillum,GHillumSource,GHillumUncertainty,DNillum,DNillumSource,DNillumUncertainty,DHillum,DHillumSource,DHillumUncertainty,Zenithlum,ZenithlumSource,ZenithlumUncertainty,TotCld,TotCldSource,TotCldUncertainty,OpqCld,OpqCldSource,OpqCldUncertainty,DryBulb,DryBulbSource,DryBulbUncertainty,DewPoint,DewPointSource,DewPointUncertainty,RHum,RHumSource,RHumUncertainty,Pressure,PressureSource,PressureUncertainty,Wdir,WdirSource,WdirUncertainty,Wspd,WspdSource,WspdUncertainty,Hvis,HvisSource,HvisUncertainty,CeilHgt,CeilHgtSource,CeilHgtUncertainty,PresentWeather,Pwat,PwatSource,PwatUncertainty,AOD,AODSource,AODUncertainty,SnowDepth,SnowDepthSource,SnowDepthUncertainty,LastSnowfall,LastSnowfallSource,LastSnowfallUncertaint' # noqa: E501
410410
hdr_columns = 'WBAN,City,State,TZ,latitude,longitude,altitude'
411411

412412
tmy2, tmy2_meta = _read_tmy2(string, columns, hdr_columns, filename)

0 commit comments

Comments
 (0)