bifacial_radiance icon indicating copy to clipboard operation
bifacial_radiance copied to clipboard

Gendaylit: actual zenith radiance warning

Open Leo-Raumann opened this issue 2 years ago • 2 comments

Dear devs,

when I call main.RadianceObj.makeOct() it forwards this oconv warning:

*python path*...\bifacial_radiance\main.py:1901: Warning: gendaylit : the actual zenith radiance(W/m^2/sr) or luminance(cd/m^2) is : 10
  warnings.warn(err[9:], Warning)

radianceObj.gendaylit2manual(), which is called before, does not print any warning (I stepped through in debugging mode).

Do you have any experiences with this warning? The results look good to me, can it be ignored?

Related to this: Do you have any plans of implementing a possibility to plot the sky?

Thanks a lot and kind regards Leo

Leo-Raumann avatar Apr 26 '22 10:04 Leo-Raumann

gendaylit2manual is only used when inputting manual sun position and values. Can you give a bit more details on how you are calling that function? it's expecting altittude and azimuth of the sun on degrees.

We haven't super had the need for that, but there is this tool from radiance itself to do that, maybe check that out?

If you are doing cumulative sky, you can see the values of each patch on the gencumsky.rad file (I don't recall hte specific name atm) that gets generated in the main folder and use those to make a plot. Assigning them to the patches in the circular plot will be a fun plotting exercise.

shirubana avatar Apr 26 '22 13:04 shirubana

hi, I use gendaylit2manual to pass satellite weather data from ADS (CAMS). Altittude and azimuth are calculated by pvlib.solarposition.get_solarposition and passed in degrees.

I get the warning for each (day-)time and I think it is triggered by 1901 | warnings.warn(err[9:], Warning) located in main.RadianceObj.makeOct().

So you didn't had this warning yet? Maybe Chris or someone else?

Thanks for the sky infos, I will check them out.

Leo-Raumann avatar May 02 '22 15:05 Leo-Raumann