Skip to content

Commit 308c6d2

Browse files
cwhanseeccoopekandersolar
authored
Code and example for classifying snow effects (#209)
* initial load of snow mode detection * lint * fix file opens * add README * formatting * fix import * fix file name * fix up horizon code, add test * fix horizon file name * update mask function * linting * work toward vectorizing categorize * lint, use mode None instead of -1 * use None in test * use dtype object to have both int and None * handle mixed types * add tests * handle equals * Fixed the horizon masking section * Linting * Added argument to test_categorize() to reflect changes made to categorize() * last lint i promise! * remove old categorize * Fixed failing test * fix offline * 0 not None * edit definitions of mode * use pvlib function, punctuation * lint, add note at head * lint * api, whatsnew * implemented mode -1 * fixed import error that failed readthedocs * linting (W291 flags on snow.py) * more mode -1 changes * linting * Fixing readthedocs rendering * fixed failing test * Apply suggestions from code review * doc build * spaces * maybe its this extra line? * docstring edits * addressed Kevin's comments * Fixed import statements * Uncomment directory definition * Removed unused import statement * Shorted line length to 79 characters * Update pvanalytics/features/snow.py Co-authored-by: Kevin Anderson <[email protected]> * Update pvanalytics/features/snow.py Co-authored-by: Kevin Anderson <[email protected]> * Update pvanalytics/features/snow.py Co-authored-by: Kevin Anderson <[email protected]> * Update pvanalytics/features/snow.py Co-authored-by: Kevin Anderson <[email protected]> * Madking changes recommended by Kevin * Linting * changed name of hidden function in test * Linting again * put Bug fixes back in whatsnew * doc improvements * save the file first * adjust colors * figure nidges * figure nidges * Update docs/examples/snow-detection/snow-mode.py * small edits * Apply suggestions from code review Suggestions from review Co-authored-by: Kevin Anderson <[email protected]> * overhaul example, remove horizon * edits, I forget what * major edits to example * yet more edits * lint * Update docs/api.rst * review comments --------- Co-authored-by: eccoope <[email protected]> Co-authored-by: Emma Cooper <[email protected]> Co-authored-by: Kevin Anderson <[email protected]>
1 parent 0b40e0c commit 308c6d2

File tree

9 files changed

+1514
-5
lines changed

9 files changed

+1514
-5
lines changed

docs/api.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ There is function for calculating the component sum for GHI, DHI,
6969
and DNI, and correcting for nighttime periods. Using this function, we can
7070
estimate one irradiance field using the two other irradiance fields.
7171
This can be useful for comparison, as well as to
72-
calculate missing data fields.
72+
calculate missing data fields.
7373

7474
.. autosummary::
7575
:toctree: generated/
@@ -269,6 +269,19 @@ Functions for labeling shadows.
269269

270270
features.shading.fixed
271271

272+
Snow
273+
----
274+
275+
Functions for identifying and quantifying the effects of snow.
276+
277+
.. autosummary::
278+
:toctree: generated/
279+
280+
features.snow.get_irradiance_sapm
281+
features.snow.get_irradiance_imp
282+
features.snow.categorize
283+
features.snow.get_transmission
284+
272285
System
273286
======
274287

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Snow
2+
----
3+
4+
Examples for identifying the effects of snow.

0 commit comments

Comments
 (0)