Closed AdamRJensen closed 1 year ago
Not opposed to returning unshaded_geometry
. Maybe via a an optional return_geometry
parameter so that it's only returned if requested?
Given that implementing this would not be a breaking change in the future, I will close this issue without addressing it.
Then, if users show interest in this feature in the future, it will be easy to implement.
One thing that would be a bit annoying in implementing this is that there are 4 return statements in the shaded_fraction
function. So, there would need to be 4 if statements checking if return_geometry
is true.
Currently only the
shaded_fraction
gets returned by theshaded_fraction
function:However, for PV panels the power reduction is not necessarily proportional to the shaded area, due to mismatch losses. Therefore, it may be of interest to some users also to have access to the actual shaded geometry and from that calculate more specific mismatch losses. This could easily be achieved by also returning the
unshaded_geometry
:@kanderso-nrel Thoughts on this?