Hi Tim,

I cannot test this right now, however I do know that it is possible for gendaylit to fail in select conditions. If I recall correctly, one is if the direct normal radiance is zero (not the case here). There are other cases where it fails more dramatically, which is what you are facing I believe. In this case I think that the thing to do is re-use a previous value from the data set (eg the previous hour).

Unfortunately, what you really need to do is actually "test" if gendaylit is going to produce valid output prior to actually getting the output. This can be done by evaluating the result of:

   gendaylit $myArgs > /dev/null  2>&1

   which in your case would be

   gendaylit 7 19 14.500 -W 924 65 -a 34.3 -o 116.17 -m 120 > /dev/null
   2>&1

Assuming your are processing a complete weather file then you need to test every time step that is not definitively at night, so that you can catch any time steps that case an error for gendaylit and then do something in those places.

Axel Jacobs goes into this in some more detail in his most excellent tutorial on rtcontrib:

   
http://www.jaloxa.eu/resources/radiance/documentation/docs/rtcontrib_lesson.pdf

Hope this helps.

Regards,

-Jack de Valpine

On 10/16/2012 7:30 PM, Tim Perry wrote:
I've reproduced this on two machines: one with the latest release and
one compiled from head on September 19, 2012.

$ gendaylit 7 19 14.500 -W 924 65 -a 34.3 -o 116.17 -m 120
# gendaylit 7 19 14.500 -W 924 65 -a 34.3 -o 116.17 -m 120
Segmentation fault (core dumped)


The values I've fed into gendaylit come from the TMY3 file from
apps2.eere.energy.gov. Every other hour of the data from this weather
file runs correctly. This hour always crashes.

wget 
http://apps1.eere.energy.gov/buildings/energyplus/weatherdata/4_north_and_central_america_wmo_region_4/1_usa/USA_CA_Twentynine.Palms.690150_TMY3.zip


Any help would be greatly appreciated.

Sincerely,
Tim

_______________________________________________
Radiance-dev mailing list
Radiance-dev@radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-dev

_______________________________________________
Radiance-dev mailing list
Radiance-dev@radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-dev

Reply via email to