-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calculate solar position already during cutout creation + add time-shift for ERA5 #199
Conversation
…on act as getter.
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## master #199 +/- ##
==========================================
+ Coverage 75.31% 75.52% +0.21%
==========================================
Files 18 18
Lines 1450 1479 +29
Branches 189 192 +3
==========================================
+ Hits 1092 1117 +25
- Misses 294 299 +5
+ Partials 64 63 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great @euronion ! I think that is a good solution. We should open an issue to address the deprecation for the release after the next one.
I've created the issues and tagged it with Also I noticed a small bug I introduced: The previous implementation assumed hourly time-steps for ERA5, it now supports arbitrary time-steps for the I'll merge as soon as CI clears the PR. |
Closes #158 .
Change proposed in this Pull Request
atlite.pv.solar_position.SolarPosition
results become part of the"influx"
featureatlite.pv.solar_position.SolarPosition(...)
is backwards compatible (for now) and acts as a pure getter if the variables are present in the cutout, else it calculates them.Description
Motivation and Context
How Has This Been Tested?
Tested locally on two cutouts (one ERA5, one SARAH)
Type of change
Checklist
pytest
inside the repository and no unexpected problems came up.I have documented the effects of my code changes in the documentationdoc/
.I have added newly introduced dependencies toenvironment.yaml
file.doc/release_notes.rst
.pre-commit run --all
to lint/format/check my contributionTODOs