Skip to content

Commit 543d97a

Browse files
adriessecwhanse
andauthored
Spectral mismatch calculation code (#1524)
* Add mismatch module in pvlib.spectrum * Add utility function to produce a sample sr to work or play with. * Add reference spectrum file and reader function. * Add the mismatch calculation. * Add tests and expand doc strings. * Update whatnew and placate Stickler. * Change am15 file from xls to csv; doc string expansion and misc small changes. * Adjust __init__.py and imports; sphynx references; whatsnew. * Undo whatsnew v0.9.2 * Resolve multiple issues from ongoing review. * Make many improvements based on reviews. * Fix indentation and __init__.py * Polish docstrings some more. * Add explanation of truncation strategy. * Final touches. * Expand explanation for truncation Co-authored-by: Cliff Hansen <[email protected]>
1 parent 875aa10 commit 543d97a

File tree

6 files changed

+2324
-4
lines changed

6 files changed

+2324
-4
lines changed

docs/sphinx/source/reference/effects_on_pv_system_output.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ Spectrum
4949
:toctree: generated/
5050

5151
spectrum.spectrl2
52+
spectrum.get_example_spectral_response
53+
spectrum.get_am15g
54+
spectrum.calc_spectral_mismatch_field

docs/sphinx/source/whatsnew/v0.9.3.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Enhancements
1212
* Low resolution altitude lookup map
1313
:py:func:`~pvlib.location.lookup_altitude`
1414
(:issue:`1516`, :pull:`1518`)
15+
* New module to calculate spectral mismatch from field spectral measurements
16+
:py:func:`~pvlib.spectrum.mismatch.get_example_spectral_response`
17+
:py:func:`~pvlib.spectrum.mismatch.get_am15g`
18+
:py:func:`~pvlib.spectrum.mismatch.calc_spectral_mismatch_field`
19+
(:issue:`1523`, :pull:`1524`)
1520
* Added Townsend-Powers monthly snow loss model:
1621
:py:func:`pvlib.snow.loss_townsend`
1722
(:issue:`1246`, :pull:`1251`, :pull:`1468`)
@@ -40,5 +45,10 @@ Contributors
4045
~~~~~~~~~~~~
4146
* João Guilherme (:ghuser:`joaoguilhermeS`)
4247
* Nicolas Martinez (:ghuser:`nicomt`)
48+
* Anton Driesse (:ghuser:`adriesse`)
49+
* Cliff Hansen (:ghuser:`cwhanse`)
50+
* Kevin Anderson (:ghuser:`kanderso-nrel`)
51+
* Mark Campanelli (:ghuser:`markcampanelli`)
52+
* Adam R. Jensen (:ghuser:`AdamRJensen`)
4353
* Abhishek Parikh (:ghuser:`abhisheksparikh`)
4454
* Taos Transue (:ghuser:`reepoi`)

0 commit comments

Comments
 (0)