atlite
atlite copied to clipboard
orientation: add horizontal single axis tracking
trafficstars
Related to #140
Test is with
import atlite
import pandas as pd
cutout = atlite.Cutout('test.nc', time='2019-05-30', x=slice(10,12), y=slice(40,42), module='era5')
cutout.prepare()
layout = cutout.uniform_layout()
panel = atlite.solarpanels.CSi
orientations = ['hsat', 'latitude_optimal', dict(slope=30, azimuth=180)]
ds = []
for orientation in orientations:
ds.append(cutout.pv(panel, orientation, layout=layout).squeeze().to_pandas())
pd.concat(ds, keys=[str(k) for k in orientations], axis=1).plot()
Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
- [x] I tested my contribution locally and it seems to work fine.
- [x] I locally ran
pytestinside the repository and no unexpected problems came up. - [x] I have adjusted the docstrings in the code appropriately.
- [x] I have added a note to release notes
doc/release_notes.rst. - [x] I have used
pre-commit run --allto lint/format/check my contribution
Output from the code

Codecov Report
Merging #220 (e97b52c) into master (6c69d51) will increase coverage by
0.10%. The diff coverage is100.00%.
@@ Coverage Diff @@
## master #220 +/- ##
==========================================
+ Coverage 72.34% 72.44% +0.10%
==========================================
Files 19 19
Lines 1580 1586 +6
Branches 222 222
==========================================
+ Hits 1143 1149 +6
Misses 371 371
Partials 66 66
| Impacted Files | Coverage Δ | |
|---|---|---|
| atlite/pv/orientation.py | 91.66% <100.00%> (+1.19%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 6c69d51...e97b52c. Read the comment docs.