Skip to content

Commit 9bdd1bb

Browse files
committed
respond to comments
- add intro before functions in example
1 parent 9cc772a commit 9bdd1bb

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/examples/plot_diffuse_fraction.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
# This example demonstrates how to use diffuse fraction estimation methods to
1111
# obtain direct and diffuse components from measured global horizontal
1212
# irradiance (GHI). Irradiance sensors such as pyranometers typically only
13-
# measure GHI. pvlib provides several functions that can be used
14-
# to separate GHI into the diffuse and direct components. The separate
15-
# components are needed to estimate the total irradiance on a tilted
16-
# surface.
13+
# measure GHI. pvlib provides several functions that can be used to separate
14+
# GHI into the diffuse and direct components. The separate components are
15+
# needed to estimate the total irradiance on a tilted surface.
1716

1817
import pathlib
1918
from matplotlib import pyplot as plt
@@ -38,6 +37,10 @@
3837
longitude=metadata['longitude'], altitude=metadata['altitude'],
3938
pressure=greensboro.Pressure*100, temperature=greensboro.DryBulb)
4039

40+
# %%
41+
# Methods for separating DHI into diffuse and direct components include:
42+
# **DISC**, **DIRINT**, **Erbs** and **Boland**.
43+
4144
# %%
4245
# DISC
4346
# ----
@@ -112,7 +115,7 @@
112115
greensboro.DHI, out_disc.dhi_disc, out_dirint.dhi_dirint,
113116
out_erbs.dhi_erbs, out_boland.dhi_boland]
114117
dhi = pd.concat(dhi, axis=1).rename(columns=dhi_renames)
115-
ghi_kt = pd.concat([greensboro.GHI/1000.0, out_erbs.kt], axis=1)
118+
ghi_kt = pd.concat([greensboro.GHI/1367.0, out_erbs.kt], axis=1)
116119

117120
# %%
118121
# Finally, let's plot them for a few winter days and compare

0 commit comments

Comments
 (0)