@@ -1306,6 +1306,13 @@ def disc(ghi, solar_zenith, datetime_or_doy, pressure=101325,
13061306
13071307 The pvlib implementation limits the clearness index to 1.
13081308
1309+ The original report describing the DISC model [1]_ uses the
1310+ relative airmass rather than the absolute (pressure-corrected)
1311+ airmass. However, the NREL implementation of the DISC model [2]_
1312+ uses absolute airmass. PVLib Matlab also uses the absolute airmass.
1313+ pvlib python defaults to absolute airmass, but the relative airmass
1314+ can be used by supplying `pressure=None`.
1315+
13091316 Parameters
13101317 ----------
13111318 ghi : numeric
@@ -1319,8 +1326,9 @@ def disc(ghi, solar_zenith, datetime_or_doy, pressure=101325,
13191326 Day of year or array of days of year e.g.
13201327 pd.DatetimeIndex.dayofyear, or pd.DatetimeIndex.
13211328
1322- pressure : numeric, default 101325
1323- Site pressure in Pascal.
1329+ pressure : None or numeric, default 101325
1330+ Site pressure in Pascal. If None, relative airmass is used
1331+ instead of absolute (pressure-corrected) airmass.
13241332
13251333 min_cos_zenith : numeric, default 0.065
13261334 Minimum value of cos(zenith) to allow when calculating global
@@ -1344,15 +1352,13 @@ def disc(ghi, solar_zenith, datetime_or_doy, pressure=101325,
13441352
13451353 References
13461354 ----------
1347- [1] Maxwell, E. L., "A Quasi-Physical Model for Converting Hourly
1348- Global Horizontal to Direct Normal Insolation", Technical
1349- Report No. SERI/TR-215-3087, Golden, CO: Solar Energy Research
1350- Institute, 1987.
1355+ .. [1] Maxwell, E. L., "A Quasi-Physical Model for Converting Hourly
1356+ Global Horizontal to Direct Normal Insolation", Technical
1357+ Report No. SERI/TR-215-3087, Golden, CO: Solar Energy Research
1358+ Institute, 1987.
13511359
1352- [2] J.W. "Fourier series representation of the position of the sun".
1353- Found at:
1354- http://www.mail-archive.com/sundial@uni-koeln.de/msg01050.html on
1355- January 12, 2012
1360+ .. [2] Maxwell, E. "DISC Model", Excel Worksheet.
1361+ https://www.nrel.gov/grid/solar-resource/disc.html
13561362
13571363 See Also
13581364 --------
@@ -1367,7 +1373,8 @@ def disc(ghi, solar_zenith, datetime_or_doy, pressure=101325,
13671373 max_clearness_index = 1 )
13681374
13691375 am = atmosphere .get_relative_airmass (solar_zenith , model = 'kasten1966' )
1370- am = atmosphere .get_absolute_airmass (am , pressure )
1376+ if pressure is not None :
1377+ am = atmosphere .get_absolute_airmass (am , pressure )
13711378
13721379 Kn = _disc_kn (kt , am )
13731380 dni = Kn * I0
0 commit comments