-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add model='gueymard2003'
to get_relative_airmass
#1655
Conversation
pvlib/atmosphere.py
Outdated
* 'pickering2002' - See reference [6] - | ||
requires apparent sun zenith | ||
* 'gueymard2003' - See reference [7] - | ||
requires true sun zenith |
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.
I've put "true sun zenith" here because I found no mention of refraction correction, "apparent" etc in the reference, but it would be good if a reviewer could determine this with more confidence.
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.
From Chris Gueymard: "My formulas all use the apparent position--Chris"
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.
Chris also commented that the default should be a more modern model.
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.
Chris also commented that the default should be a more modern model.
Does he have specific recommendations?
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.
Implicitly, Gueymard 2003.
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.
Thanks @adriesse for checking!
Updated default: no objection from me, but I think it will have to wait for 0.10.0.
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.
In a separate issue. I think there could be some general discussion about defaults actually.
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.
Everything seems to check out 😄
I would like to perhaps add a bit more context because the citation is not very explicit about the equation (the AM model is obscurely hidden in the appendix). Perhaps add the equation number in the citation and consider adding that it is what is used in the REST model.
The book chapter "Clear-Sky Radiation Models and Aerosol Effects" by Gueymard could be considered a good second reference. It provides the equation, lists a few sets of AM coefficients, and provides more context. The relevant part of the book chapter is:
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
Thank you @kanderso-nrel 🚀 |
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.This is the relative air mass model used in REST and REST2, as well as ASTM G222-21.