pvlib 0.12.0__py3-none-any.whl → 0.12.1a1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pvlib/atmosphere.py CHANGED
@@ -147,20 +147,13 @@ def get_relative_airmass(zenith, model='kastenyoung1989'):
147
147
 
148
148
  * 'simple' - secant(apparent zenith angle) -
149
149
  Note that this gives -Inf at zenith=90
150
- * 'kasten1966' - See reference [1] -
151
- requires apparent sun zenith
152
- * 'youngirvine1967' - See reference [2] -
153
- requires true sun zenith
154
- * 'kastenyoung1989' (default) - See reference [3] -
155
- requires apparent sun zenith
156
- * 'gueymard1993' - See reference [4] -
157
- requires apparent sun zenith
158
- * 'young1994' - See reference [5] -
159
- requires true sun zenith
160
- * 'pickering2002' - See reference [6] -
161
- requires apparent sun zenith
162
- * 'gueymard2003' - See references [7] and [8] -
163
- requires apparent sun zenith
150
+ * 'kasten1966' - See [1]_ - requires apparent sun zenith
151
+ * 'youngirvine1967' - See [2]_ - requires true sun zenith
152
+ * 'kastenyoung1989' (default) - See [3]_ - requires apparent sun zenith
153
+ * 'gueymard1993' - See [4]_, [5]_ - requires apparent sun zenith
154
+ * 'young1994' - See [6]_ - requires true sun zenith
155
+ * 'pickering2002' - See [7]_ - requires apparent sun zenith
156
+ * 'gueymard2003' - See [8]_, [9]_ - requires apparent sun zenith
164
157
 
165
158
  Returns
166
159
  -------
@@ -174,41 +167,57 @@ def get_relative_airmass(zenith, model='kastenyoung1989'):
174
167
  other models use true (not refraction-adjusted) zenith angle. Apparent
175
168
  zenith angles should be calculated at sea level.
176
169
 
170
+ Comparison among several models is reported in [10]_.
171
+
177
172
  References
178
173
  ----------
179
- .. [1] Fritz Kasten. "A New Table and Approximation Formula for the
180
- Relative Optical Air Mass". Technical Report 136, Hanover, N.H.:
181
- U.S. Army Material Command, CRREL.
174
+ .. [1] Fritz Kasten, "A New Table and Approximation Formula for the
175
+ Relative Optical Air Mass," CRREL (U.S. Army), Hanover, NH, USA,
176
+ Technical Report 136, 1965.
177
+ :doi:`11681/5671`
182
178
 
183
179
  .. [2] A. T. Young and W. M. Irvine, "Multicolor Photoelectric
184
- Photometry of the Brighter Planets," The Astronomical Journal, vol.
185
- 72, pp. 945-950, 1967.
180
+ Photometry of the Brighter Planets. I. Program and Procedure,"
181
+ The Astronomical Journal, vol. 72, pp. 945-950, 1967.
182
+ :doi:`10.1086/110366`
186
183
 
187
- .. [3] Fritz Kasten and Andrew Young. "Revised optical air mass tables
188
- and approximation formula". Applied Optics 28:4735-4738
184
+ .. [3] Fritz Kasten and Andrew Young, "Revised optical air mass tables
185
+ and approximation formula," Applied Optics 28:4735-4738, 1989.
186
+ :doi:`10.1364/AO.28.004735`
189
187
 
190
188
  .. [4] C. Gueymard, "Critical analysis and performance assessment of
191
189
  clear sky solar irradiance models using theoretical and measured
192
190
  data," Solar Energy, vol. 51, pp. 121-138, 1993.
191
+ :doi:`10.1016/0038-092X(93)90074-X`
192
+
193
+ .. [5] C. Gueymard, "Development and performance assessment of a clear
194
+ sky spectral radiation model,” in Proc. of the 22nd ASES Conference,
195
+ Solar ’93, 1993, pp. 433–438.
193
196
 
194
- .. [5] A. T. Young, "AIR-MASS AND REFRACTION," Applied Optics, vol. 33,
195
- pp. 1108-1110, Feb 1994.
197
+ .. [6] A. T. Young, "Air-Mass and Refraction," Applied Optics, vol. 33,
198
+ pp. 1108-1110, Feb. 1994.
199
+ :doi:`10.1364/AO.33.001108`
196
200
 
197
- .. [6] Keith A. Pickering. "The Ancient Star Catalog". DIO 12:1, 20,
201
+ .. [7] Keith A. Pickering, "The Southern Limits of the Ancient Star Catalog
202
+ and the Commentary of Hipparchos," DIO, vol. 12, pp. 3-27, Sept. 2002.
203
+ Available at `DIO <http://dioi.org/jc01.pdf>`_
198
204
 
199
- .. [7] C. Gueymard, "Direct solar transmittance and irradiance
205
+ .. [8] C. Gueymard, "Direct solar transmittance and irradiance
200
206
  predictions with broadband models. Part I: detailed theoretical
201
207
  performance assessment". Solar Energy, vol 74, pp. 355-379, 2003.
202
208
  :doi:`10.1016/S0038-092X(03)00195-6`
203
209
 
204
- .. [8] C. Gueymard (2019). Clear-Sky Radiation Models and Aerosol Effects.
205
- In: Polo, J., Martín-Pomares, L., Sanfilippo, A. (eds) Solar Resources
206
- Mapping. Green Energy and Technology. Springer, Cham.
210
+ .. [9] C. Gueymard, "Clear-Sky Radiation Models and Aerosol Effects", in
211
+ Solar Resources Mapping: Fundamentals and Applications,
212
+ Polo, J., Martín-Pomares, L., Sanfilippo, A. (Eds), Cham, CH: Springer,
213
+ 2019, pp. 137-182.
207
214
  :doi:`10.1007/978-3-319-97484-2_5`
208
215
 
209
- .. [9] Matthew J. Reno, Clifford W. Hansen and Joshua S. Stein, "Global
216
+ .. [10] Matthew J. Reno, Clifford W. Hansen and Joshua S. Stein, "Global
210
217
  Horizontal Irradiance Clear Sky Models: Implementation and Analysis"
211
- Sandia Report, (2012).
218
+ Sandia National Laboratories, Albuquerque, NM, USA, SAND2012-2389, 2012.
219
+ :doi:`10.2172/1039404`
220
+
212
221
  '''
213
222
 
214
223
  # set zenith values greater than 90 to nans
@@ -236,7 +245,7 @@ def get_relative_airmass(zenith, model='kastenyoung1989'):
236
245
  (np.cos(zenith_rad) ** 3 +
237
246
  0.149864*(np.cos(zenith_rad) ** 2) +
238
247
  0.0102963*(np.cos(zenith_rad)) + 0.000303978))
239
- elif 'gueymard1993' == model:
248
+ elif 'gueymard1993' == model: # [4], Eq. 22 and [5], Eq. 3b
240
249
  am = (1.0 / (np.cos(zenith_rad) +
241
250
  0.00176759*(z)*((94.37515 - z) ** - 1.21563)))
242
251
  elif 'gueymard2003' == model:
pvlib/iotools/__init__.py CHANGED
@@ -11,6 +11,12 @@ from pvlib.iotools.solrad import get_solrad # noqa: F401
11
11
  from pvlib.iotools.psm3 import get_psm3 # noqa: F401
12
12
  from pvlib.iotools.psm3 import read_psm3 # noqa: F401
13
13
  from pvlib.iotools.psm3 import parse_psm3 # noqa: F401
14
+ from pvlib.iotools.psm4 import get_nsrdb_psm4_aggregated # noqa: F401
15
+ from pvlib.iotools.psm4 import get_nsrdb_psm4_tmy # noqa: F401
16
+ from pvlib.iotools.psm4 import get_nsrdb_psm4_conus # noqa: F401
17
+ from pvlib.iotools.psm4 import get_nsrdb_psm4_full_disc # noqa: F401
18
+ from pvlib.iotools.psm4 import read_nsrdb_psm4 # noqa: F401
19
+ from pvlib.iotools.psm4 import parse_nsrdb_psm4 # noqa: F401
14
20
  from pvlib.iotools.pvgis import get_pvgis_tmy, read_pvgis_tmy # noqa: F401
15
21
  from pvlib.iotools.pvgis import read_pvgis_hourly # noqa: F401
16
22
  from pvlib.iotools.pvgis import get_pvgis_hourly # noqa: F401