Skip to content
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

Update irradiance.haydavies docs; use Wm⁻² instead of W/m^2 throughout pvlib.irradiance #2191

Merged
merged 28 commits into from
Sep 24, 2024

Conversation

RDaxini
Copy link
Contributor

@RDaxini RDaxini commented Aug 29, 2024

add eqn variable definitions
rearrange references
changed beta into theta_T to avoid double definition --- surface tilt, and "daily average of the solar elevation in degrees" (pvlib.irradiance.diffuse_par_spitters)
Remove Loutzenhiser P.G. et. al. reference. I do not see it cited anywhere here in the docs for the haydavies model
add "projection ratio" to variable definition
separate A and R_b
@RDaxini
Copy link
Contributor Author

RDaxini commented Aug 29, 2024

Is anyone aware of an active (permanent?) link to the original Hay and Davies publication? I think it would help to link that into the references but I have been unable to find a suitable link yet.

Change all instances of W/m^2 into Wm⁻²
@RDaxini
Copy link
Contributor Author

RDaxini commented Aug 29, 2024

f89f3f7, 87fc372 is my personal stylistic preference for typesetting the units of watt per metre squared. This can be reverted if people disagree.

@RDaxini RDaxini marked this pull request as ready for review August 30, 2024 11:06
@kandersolar kandersolar added this to the v0.11.1 milestone Aug 30, 2024
@RDaxini RDaxini changed the title [WIP] Update pvlib.irradiance.haydavies docs Update pvlib.irradiance.haydavies docs Aug 30, 2024
RDaxini added a commit to RDaxini/pvlib-python that referenced this pull request Aug 30, 2024
move eqn and add description and variables definition to a new notes section
update references
redefine surface tilt for consistency with pvlib#2191
@kandersolar
Copy link
Member

Is anyone aware of an active (permanent?) link to the original Hay and Davies publication? I think it would help to link that into the references but I have been unable to find a suitable link yet.

It's available at archive.org, although you have to create an account and "check it out": https://archive.org/details/proceedingsfirst00cana/mode/2up

I do not know if a more convenient alternative is available.

@RDaxini RDaxini changed the title Update pvlib.irradiance.haydavies docs Update irradiance.haydavies docs Aug 30, 2024
@RDaxini RDaxini mentioned this pull request Aug 30, 2024
6 tasks
@RDaxini RDaxini mentioned this pull request Aug 30, 2024
8 tasks
@RDaxini
Copy link
Contributor Author

RDaxini commented Sep 2, 2024

It's available at archive.org, although you have to create an account and "check it out": https://archive.org/details/proceedingsfirst00cana/mode/2up

I do not know if a more convenient alternative is available.

I have added that one in for now (1063804)
I'll add an up to date "last accessed" just before this PR is merged

@RDaxini RDaxini mentioned this pull request Sep 3, 2024
6 tasks
Copy link
Member

@cwhanse cwhanse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concur with the additional description of terms in the Hay/Davies model equation. I disagree with changing the primary reference.

pvlib/irradiance.py Outdated Show resolved Hide resolved
Copy link
Member

@kandersolar kandersolar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm neutral on the units formatting changes. The new form is a little nicer to look at, but I foresee myself grumbling for having to copy/paste that superscript 2 in future code edits :P

pvlib/irradiance.py Outdated Show resolved Hide resolved
pvlib/irradiance.py Outdated Show resolved Hide resolved
pvlib/irradiance.py Outdated Show resolved Hide resolved
adjust units

Co-Authored-By: Echedey Luis <[email protected]>
@RDaxini
Copy link
Contributor Author

RDaxini commented Sep 15, 2024

@echedey-ls I removed the :math: but then added [] rather than () as I think that is more common across other pvlib functions.

@RDaxini
Copy link
Contributor Author

RDaxini commented Sep 15, 2024

What's up with the pytest command not found error since 39a7ddb? :S

@echedey-ls
Copy link
Contributor

@echedey-ls I removed the :math: but then added [] rather than () as I think that is more common across other pvlib functions.

Yup, I prefer that too. poa_components still has parenthesis thou, that's why I thought the next code belonged to it.

What's up with the pytest command not found error since 39a7ddb? :S

Once again, witchcraft. I will blind shot that in a PR.

@RDaxini
Copy link
Contributor Author

RDaxini commented Sep 15, 2024

Yup, I prefer that too. poa_components still has parenthesis thou, that's why I thought the next code belonged to it.

I think the original author might have done that because in that case it looks like the units is part of the sentence rather than just at the end of a parameter name with/without additional info after it that can be read and makes sense in isolation.

I'm sure we'll be able to do a thorough review of units/sentences like this following #2209. I will neaten up that PR and mark it ready for review soon.

pvlib/irradiance.py Outdated Show resolved Hide resolved
pvlib/irradiance.py Show resolved Hide resolved
pvlib/irradiance.py Outdated Show resolved Hide resolved
pvlib/irradiance.py Outdated Show resolved Hide resolved
@kandersolar kandersolar mentioned this pull request Sep 23, 2024
11 tasks
Copy link
Member

@cwhanse cwhanse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you care to, I would change the description of return_components to

If `True`, ``diffuse_components`` is returned.

The markup in the first Returns section could be improved using double `` rather than single `, in places.

pvlib/irradiance.py Outdated Show resolved Hide resolved
pvlib/irradiance.py Outdated Show resolved Hide resolved
Co-Authored-By: Cliff Hansen <[email protected]>
@RDaxini
Copy link
Contributor Author

RDaxini commented Sep 24, 2024

If you care to, I would change the description of return_components to

If `True`, ``diffuse_components`` is returned.

Done

The markup in the first Returns section could be improved using double `` rather than single `, in places.

I think I have resolved this now with ` for parameter values and `` for parameters. Let me know if I missed anything. If not, I think all issues have now been resolved.

@cwhanse
Copy link
Member

cwhanse commented Sep 24, 2024

Changes to the Returns section are great. I was also suggesting that we edit the description of the input parameter return_components.

@RDaxini
Copy link
Contributor Author

RDaxini commented Sep 24, 2024

Changes to the Returns section are great. I was also suggesting that we edit the description of the input parameter return_components.

ohh right of course, I just misread/misunderstood. Check the last commit --- let me know if we're on the same page now 😅

@kandersolar kandersolar changed the title Update irradiance.haydavies docs Update irradiance.haydavies docs; use Wm⁻² instead of W/m^2 throughout pvlib.irradiance Sep 24, 2024
@kandersolar kandersolar merged commit ad89390 into pvlib:main Sep 24, 2024
29 of 30 checks passed
@kandersolar
Copy link
Member

Thanks @RDaxini!

@RDaxini
Copy link
Contributor Author

RDaxini commented Sep 24, 2024

Thanks @RDaxini!

and thanks for all the reviews!
btw good idea with the rename 👍🏾

@RDaxini RDaxini deleted the update_haydavies_docs branch September 24, 2024 18:27
kandersolar pushed a commit that referenced this pull request Sep 26, 2024
* Update irradiance.py

move eqn and add description and variables definition to a new notes section
update references
redefine surface tilt for consistency with #2191

* Update irradiance.py

update variable names (I_d0 to DHI and add definition of theta as aoi)

* Update irradiance.py

add doi

* Update irradiance.py

wording in definition of F'

* Update irradiance.py

* Update irradiance.py

\theta->\beta
reinstate Loutzenhiser reference

* Update irradiance.py

add doi to

* Update irradiance.py

* Update irradiance.py

add units to returns statement

* typo

* Update v0.11.1.rst

* Update v0.11.1.rst

* update model description

* whatsnew, update and merge entries

* whatsnew (missing word)

* move references (klucher and haydavies)

moved references from first line to notes section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing Descriptions for Formula Components in haydavies
4 participants