Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information