-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Issue #2245 Infinite sheds beam fraction on ground zenith guardrail syntax bug #2359
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
Changes from 5 commits
62045a5
23dd57e
59d6581
fb84dfc
dae7326
dbb8afc
7bd91b3
eb88655
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -260,8 +260,10 @@ def get_irradiance_poa(surface_tilt, surface_azimuth, solar_zenith, | |||||||||||||||
| Returns | ||||||||||||||||
| ------- | ||||||||||||||||
| output : dict or DataFrame | ||||||||||||||||
| Output is a DataFrame when input ghi is a Series. See Notes for | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now that I read this, I think I should have suggested following the type of |
||||||||||||||||
| descriptions of content. | ||||||||||||||||
| Output is a "pandas.DataFrame" when "ghi" is a Series. | ||||||||||||||||
| Otherwise it is a dict of "numpy.ndarray" | ||||||||||||||||
| See Issue #2245 | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
| See Notes for descriptions of content. | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry about that double recommendation, it's my company firewall getting in the way of following links. |
||||||||||||||||
|
|
||||||||||||||||
| Notes | ||||||||||||||||
| ----- | ||||||||||||||||
|
|
@@ -372,7 +374,7 @@ def get_irradiance_poa(surface_tilt, surface_azimuth, solar_zenith, | |||||||||||||||
| 'poa_global': poa_global, 'poa_direct': poa_direct, | ||||||||||||||||
| 'poa_diffuse': poa_diffuse, 'poa_ground_diffuse': poa_gnd_pv, | ||||||||||||||||
| 'poa_sky_diffuse': poa_sky_pv, 'shaded_fraction': f_x} | ||||||||||||||||
| if isinstance(poa_global, pd.Series): | ||||||||||||||||
| if isinstance(ghi, pd.Series): | ||||||||||||||||
| output = pd.DataFrame(output) | ||||||||||||||||
| return output | ||||||||||||||||
|
|
||||||||||||||||
|
|
||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -87,7 +87,8 @@ def _unshaded_ground_fraction(surface_tilt, surface_azimuth, solar_zenith, | |||||||||
| surface_azimuth) | ||||||||||
| f_gnd_beam = 1.0 - np.minimum( | ||||||||||
| 1.0, gcr * np.abs(cosd(surface_tilt) + sind(surface_tilt) * tan_phi)) | ||||||||||
| np.where(solar_zenith > max_zenith, 0., f_gnd_beam) # [1], Eq. 4 | ||||||||||
| f_gnd_beam = np.where(solar_zenith > max_zenith, 0., f_gnd_beam) | ||||||||||
| # [1], Eq. 4 | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| return f_gnd_beam # 1 - min(1, abs()) < 1 always | ||||||||||
|
|
||||||||||
|
|
||||||||||
|
|
||||||||||
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.