You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
irradiance.globalinplane appears redundant with total_irrad #422
I am mixed on this, because I have used both, but not necessarily for a
good reason, just because of whichever tutorial I was copying at the time.
I think I prefer globalinplane because I occasionally have need to modify
the intermediates rather than use the default assumptions. Also, does
total_irrad work with tracking? I can't remember off the top of my head.
On Mon, Feb 12, 2018 at 10:32 AM, Will Holmgren ***@***.***> wrote:
I think they're different, but I'm struggling to think of a good use case
for globalinplane.
globalinplane computes POA global from modeling intermediates (AOI, DNI,
POA diffuse).
total_irrad computes POA components from more basic information (system
specs, solar position, DNI, GHI, DHI).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#422 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH66AaO9XT6XKWkaCgfvmX52M4K75nHtks5tUIPbgaJpZM4SCliW>
.
total_irrad accepts scalar (fixed) or vector (tracking) surface azimuth and tilt. It does not automatically compute tracking angles, though.
My post above was a bit misleading. I suggested that globalinplane returns only POA global, but it actually returns POA global, POA direct, and POA diffuse (total). We could probably come up with a better name for globalinplane. Something like poa_components.
Thinking through this a little more... total_irrad does 3 things:
First, total_irrad provides a unified interface to the various diffuse sky models. This aspect could be refactored into a separate function (get_diffuse?) and used within total_irrad.
Second, total_irrad calls the grounddiffuse function.
Third, total_irrad assembles the POA components into a data structure (DataFrame or OrderedDict). total_irrad could be refactored to use a renamed globalinplane internally. The renamed globalinplane would need to include the sky diffuse and ground diffuse to its output for API consistency.
So, total_irrad would be reduced to a wrapper for the 3 steps described above. It would not do any calculations itself.
While we're at it, I'd welcome suggestions for a better name than total_irrad.
I think those ideas are good, reduce total_irrad to a wrapper, and refactor the wrapped functions. My instinctive reaction to 'total_irrad' is 'get_irradiance_components'
Activity
wholmgren commentedon Feb 12, 2018
I think they're different, but I'm struggling to think of a good use case for
globalinplane.globalinplanecomputes POA global from modeling intermediates (AOI, DNI, POA diffuse).total_irradcomputes POA components from more basic information (system specs, solar position, DNI, GHI, DHI).jforbess commentedon Feb 13, 2018
wholmgren commentedon Feb 13, 2018
total_irradaccepts scalar (fixed) or vector (tracking) surface azimuth and tilt. It does not automatically compute tracking angles, though.My post above was a bit misleading. I suggested that
globalinplanereturns only POA global, but it actually returns POA global, POA direct, and POA diffuse (total). We could probably come up with a better name forglobalinplane. Something likepoa_components.Thinking through this a little more...
total_irraddoes 3 things:First,
total_irradprovides a unified interface to the various diffuse sky models. This aspect could be refactored into a separate function (get_diffuse?) and used withintotal_irrad.Second,
total_irradcalls thegrounddiffusefunction.Third,
total_irradassembles the POA components into a data structure (DataFrame or OrderedDict).total_irradcould be refactored to use a renamedglobalinplaneinternally. The renamedglobalinplanewould need to include the sky diffuse and ground diffuse to its output for API consistency.So,
total_irradwould be reduced to a wrapper for the 3 steps described above. It would not do any calculations itself.While we're at it, I'd welcome suggestions for a better name than
total_irrad.cwhanse commentedon Feb 13, 2018
I think those ideas are good, reduce total_irrad to a wrapper, and refactor the wrapped functions. My instinctive reaction to 'total_irrad' is 'get_irradiance_components'
I like function names that start with verbs.
cwhanse commentedon May 7, 2018
Closed via #427