[Radiance-general] Genskyvec.pl error on Windows (was: Re: Python script)

Greg Ward gregoryjward at gmail.com
Wed Jul 18 13:28:23 PDT 2012


Hi Rob,

I can't test it for you, but I suspect the line:

	} elsif (/\sskyfunc\s*$/) {

is the problem.  Try removing the final '\s*' to make it:

	} elsif (/\sskyfunc$/) {

and see if that works.  It works on Unix, so if it solves the problem, I should check it in.  I don't know why it would be an issue, but I can't see what else could be failing.

-Greg


> From: "Guglielmetti, Robert" <Robert.Guglielmetti at nrel.gov>
> Date: July 18, 2012 12:43:27 PM PDT
> 
> Looked at this a bit this morning, and actually I can't get the correct behavior from Genskyvec on Windows even using the program directly. A really simple example:
> 
> C:\gensky 6 21 12 <return>
> # gensky 6 21 12
> # Local solar time: 11.84
> # Solar altitude and azimuth: 75.5 -8.8
> # Ground ambient level: 18.2
> 
> void light solar
> 0
> 0
> 3 7.18e+006 7.18e+006 7.18e+006
> 
> solar source sun
> 0
> 0
> 4 0.038263 -0.247650 0.968094 0.5
> 
> void brightfunc skyfunc
> 2 skybr skybright.cal
> 0
> 7 1 3.16e+001 3.02e+001 1.65e+000 0.038263 -0.247650 0.968094
> 
> C:\gensky 6 21 12 | genskyvec.pl -m 1
> Bad sky description!
> 
> Gensky prints a valid description to STDOUT, but when I pipe it to genskyvec, it fails the error check loop in lines 25-45. I'm using v 2.8 of genskyvec.pl, from 2012.06.28. Ideas?
> 
> - Rob
> 
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general



More information about the Radiance-general mailing list