|
7 | 7 | """
|
8 | 8 |
|
9 | 9 | # %%
|
10 |
| -# This example illustrates how to use the work of Martinez et al. [1]_. |
11 |
| -# The model is implemented in :py:func:`pvlib.shading.martinez_shade_loss`. |
12 |
| -# This model corrects the beam and circumsolar incident irradiance |
| 10 | +# This example illustrates how to use the proposed by Martinez et al. [1]_. |
| 11 | +# The model corrects the beam and circumsolar incident irradiance |
13 | 12 | # based on the number of shaded *blocks*. A *block* is defined as a
|
14 | 13 | # group of cells that are protected by a bypass diode.
|
15 | 14 | # More information on the *blocks* can be found in the original paper [1]_ and
|
16 |
| -# in :py:func:`pvlib.shading.martinez_shade_loss` documentation. |
| 15 | +# in :py:func:`pvlib.shading.martinez_shade_factor` documentation. |
17 | 16 | #
|
18 | 17 | # The following key functions are used in this example:
|
19 |
| -# 1. :py:func:`pvlib.shading.martinez_shade_loss` to calculate the adjustment |
| 18 | +# 1. :py:func:`pvlib.shading.martinez_shade_factor` to calculate the adjustment |
20 | 19 | # factor for the direct irradiance component.
|
21 | 20 | # 2. :py:func:`pvlib.shading.shaded_fraction1d` to calculate the fraction of
|
22 | 21 | # shaded surface and consequently the number of shaded *blocks* due to
|
|
45 | 44 | #
|
46 | 45 | # Setting up the system
|
47 | 46 | # ----------------------
|
48 |
| -# Let's start by defining the location and the time range for the analysis. |
| 47 | +# Let's start by defining the system characteristics, location and the time |
| 48 | +# range for the analysis. |
49 | 49 |
|
50 | 50 | import pvlib
|
51 | 51 | import pandas as pd
|
|
71 | 71 | metadata["latitude"], metadata["longitude"], altitude=metadata["elevation"]
|
72 | 72 | )
|
73 | 73 |
|
74 |
| -# Coerce a year: function above returns typical months of different years |
| 74 | +# Coerce a year: function above returns typical months from different years |
75 | 75 | pvgis_data.index = [ts.replace(year=2024) for ts in pvgis_data.index]
|
76 | 76 | # Select day to show
|
77 | 77 | weather_data = pvgis_data["2024-07-11"]
|
|
0 commit comments