-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Shaded Fraction on Sloped Terrains - PR1725 partial continuation #1962
Shaded Fraction on Sloped Terrains - PR1725 partial continuation #1962
Conversation
a6dbae1
to
481a2e3
Compare
A distinction needs to be drawn between the angles that define the orientation of tracker and the angles that define the orientation of the modules on the tracker. A single-axis tracker with N-S axis has constant I will take a closer look at this PR in the coming days. Thanks for your patience @echedey-ls! |
Lot of thanks for clearing this up. Now I feel like it's obvious. Don't worry about the review. I know it's premature to open a PR based on another one (I've got yet another one in the drawer that needs this implementation to work, sorry 😬 ) |
ee47994
to
aeed6af
Compare
I'm late jumping in here, but one thought I have: does this need to be limited to trackers? Or can the function name and variable names be updated to more generally cover fixed or tracking rows? |
It should work for fixed tilt just fine, so not limited to trackers |
Thanks, @mikofski. It seems like it would be helpful to change:
or something like that. |
Maybe I misspoke. Sorry, I meant to say that it could be repurposed for fixed tilt with some care, but, I’m not sure if we should make it all purpose for both fixed tilt & SAT. For one, tracker azimuth and surface azimuth mean different things, so we can’t just swap them. I think it would work if we treat fixed tilt as a tracker aligned east to west and set the tracker azimuth to either 90° or 270° measured clockwise from north, or 90° from the surface azimuth. Like a similar issue you raised recently, if azimuth were 90° then tilts would be negative if north and positive if south. Currently this algorithm doesn’t seem to account for tracker axis tilt, but as I mentioned in the original PR #1725 I think it could be managed when calculating projected solar zenith? A tracker axis tilt would correspond to an east-west slope for a fixed tilt. Anyway I apologize for being too glib, I should have been more careful in my replies, again sorry. |
I agree with @williamhobbs. |
From NREL paper
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
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.
The docs build is failing because the example gallery is still using the old parameter names. Other than that, LGTM!
FYI I believe @AdamRJensen plans to review as well.
Co-Authored-By: Kevin Anderson <57452607+kandersolar@users.noreply.github.com>
Well spotted, I always miss something...
All feedback is welcome, even better if it comes from one of the authors 😉 |
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.
An initial review of the gallery example
docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
Outdated
Show resolved
Hide resolved
docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
Outdated
Show resolved
Hide resolved
docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
Outdated
Show resolved
Hide resolved
docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
Outdated
Show resolved
Hide resolved
docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
Outdated
Show resolved
Hide resolved
latitude, longitude = 28.51, -13.89 | ||
altitude = pvlib.location.lookup_altitude(latitude, longitude) | ||
|
||
axis_tilt = 3 # degrees |
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.
Could you add a comment about what this represents?
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.
Let me know your opinion on axis_tilt = 3 # degrees, positive is upwards in the axis_azimuth direction
(edit: already commited)
docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
Outdated
Show resolved
Hide resolved
docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
Outdated
Show resolved
Hide resolved
docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
Outdated
Show resolved
Hide resolved
docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
Outdated
Show resolved
Hide resolved
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.
Awesome stuff @echedey-ls !
I'm really looking forward to using this.
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
Co-Authored-By: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
Co-Authored-By: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
Everything's ready IMO 😄 . Feel free to review and propose changes 📝 |
docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
Outdated
Show resolved
Hide resolved
docs/examples/shading/plot_shaded_fraction1d_ns_hsat_example.py
Outdated
Show resolved
Hide resolved
I just fixed a syntax issue and linter issue, and then fixed a new syntax issue I introduced... Thanks for this great contribution @echedey-ls! |
Excited to see this merged! Thanks to everyone that helped move this forward!! |
Add linear shade loss model for thin film #1690docs/sphinx/source/reference
for API changes.docs/sphinx/source/whatsnew
for all changes. Includes link to the GitHub Issue with:issue:`num`
or this Pull Request with:pull:`num`
. Includes contributor name and/or GitHub username (link with:ghuser:`user`
).remote-data
) and Milestone are assigned to the Pull Request and linked Issue.See #1725 for context.
Link to docs
pvlib.shading.shaded_fraction1d
pvlib.shading.linear_shade_loss
I moved the linear loss model to #2004
Feel free to suggest anything and ask about the adopted solutions.