Commit 4101bb2
Adding PVGIS horizon data retrieval method (#1395)
* added horizon model first draft
* added get horizon function
* fixing stickler items & updates
* stickler whitespace
* finishing up stickler
* finishing up stickler, 2
* added optional deps, changed argument of horizon_map from path to array
* stickler
* Update pvlib/iotools/pvgis.py
Co-authored-by: Karel De Brabandere <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* Update pvlib/horizon.py
Co-authored-by: Cliff Hansen <[email protected]>
* updates
* cleaning up stickler
* cleaning up stickler 2
* cleaning up stickler 3
* updated math for angle calculation
* removed old comment
* updated angle maximization method
* one of these days I'll remember stickler before pushing
* changed variable names to make clear that we're working in pixels
* added module to download SRTM DEM data
* spelling/spacing
* stickler
* stickler3
* fixed f string formatting
stickler doesn't like it but it doesn't work with spaces
* added horizon retrival, functions, dem retrival
* stickler
* stickler2
* stickler3
* Revert "merge2"
This reverts commit 6f9ad5e, reversing
changes made to 43951a2.
* fix formatting
* fix formatting, 2
* removing horizon.py
* tests added
* updated test
* fixed stickler
* minor formatting/stickler
* Update v0.9.6.rst
* Update iotools.rst
* Apply suggestions from code review
Co-authored-by: Kevin Anderson <[email protected]>
* Change assert to use np builtin
* correct docstring for hidden function
* Chnage proxy settings to passing through kwargs
* Changed proxy settings to pass kwargs
* Change assertion to use assert_series_equal from conftest
* Added horizon profile contributions
* Update v0.9.6.rst
* Delete cgiar.py
* Delete test_cgiar.py
* Update shading.py
* Update setup.py
* Update __init__.py
* Update iotools.rst
* Update test_pvgis.py
* return only two columns and makde bytes->utf-8 implicit
* Use JSON to streamline processing
* Update pvgis.py
* added url default info
* remove np dependency
* Apply suggestions from code review
Co-authored-by: Adam R. Jensen <[email protected]>
* Moved ref for consistency
* Updated name of horizon data variable
* Add CSV for horizon tests
* Test whole dataframe
* Change coordinate system to pvlib
* fix test to read in csv properly
* Apply suggestions from code review
Co-authored-by: Adam R. Jensen <[email protected]>
* Changed names for consistency
* Match column names in test dataframe
* stickler
* Set horizon_azimuth to the index
* Added invalid coords test
* update test to reflect change to index
* forgot xfail flag
* Update test_read_pvgis_horzion_invalid_coords
* return metadata object
* Update pvgis.py
* fix tests for metadata update
* Remove index column from test file
* Convert output to pd.Series
* Update tests to assert pd.Series
* Remove duplicate north value (0, 360)
---------
Co-authored-by: Ben <[email protected]>
Co-authored-by: Karel De Brabandere <[email protected]>
Co-authored-by: Cliff Hansen <[email protected]>
Co-authored-by: Pierce <[email protected]>
Co-authored-by: Kevin Anderson <[email protected]>
Co-authored-by: Adam R. Jensen <[email protected]>1 parent 909f86d commit 4101bb2
File tree
6 files changed
+135
-3
lines changed- docs/sphinx/source
- reference
- whatsnew
- pvlib
- data
- iotools
- tests/iotools
6 files changed
+135
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
67 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
509 | 510 | | |
510 | 511 | | |
511 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
512 | 530 | | |
513 | 531 | | |
514 | 532 | | |
| |||
0 commit comments