@@ -1306,6 +1306,13 @@ def disc(ghi, solar_zenith, datetime_or_doy, pressure=101325,
1306
1306
1307
1307
The pvlib implementation limits the clearness index to 1.
1308
1308
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
+
1309
1316
Parameters
1310
1317
----------
1311
1318
ghi : numeric
@@ -1319,8 +1326,9 @@ def disc(ghi, solar_zenith, datetime_or_doy, pressure=101325,
1319
1326
Day of year or array of days of year e.g.
1320
1327
pd.DatetimeIndex.dayofyear, or pd.DatetimeIndex.
1321
1328
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.
1324
1332
1325
1333
min_cos_zenith : numeric, default 0.065
1326
1334
Minimum value of cos(zenith) to allow when calculating global
@@ -1344,15 +1352,13 @@ def disc(ghi, solar_zenith, datetime_or_doy, pressure=101325,
1344
1352
1345
1353
References
1346
1354
----------
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.
1351
1359
1352
- [2] J.W. "Fourier series representation of the position of the sun".
1353
- Found at:
1354
- http://www.mail-archive.com/[email protected] /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
1356
1362
1357
1363
See Also
1358
1364
--------
@@ -1367,7 +1373,8 @@ def disc(ghi, solar_zenith, datetime_or_doy, pressure=101325,
1367
1373
max_clearness_index = 1 )
1368
1374
1369
1375
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 )
1371
1378
1372
1379
Kn = _disc_kn (kt , am )
1373
1380
dni = Kn * I0
0 commit comments