[Radiance-general] problem of gencumulativesky driven through Python

Joe Smith the.oat.cracker at gmail.com
Wed Feb 18 19:43:21 PST 2015


... to add a bit more info:

1. the same approach of using Python to execute Radiance programs works
fine on another Mac and Windows7 computers

2. I'm using *Python 2.7.9* for Mac

3. The Gencumulativesky executable is probably compiled from the source
code from Daysim3 ... but I'm not sure if it is the latest version ...

4. the Radiance is version *4.3.a.2* installed from
*https://github.com/NREL/Radiance/releases/download/4.3.a.2/radiance-4.3.a-Darwin.dmg
<https://github.com/NREL/Radiance/releases/download/4.3.a.2/radiance-4.3.a-Darwin.dmg>*

Thanks!

On Thu, Feb 19, 2015 at 11:32 AM, Joe Smith <the.oat.cracker at gmail.com>
wrote:

> Hi, guys,
>
> I don't know if you can kindly advise me on a Python related problem, or
> suggest a source for help:
>
> 1. the following gencumulativesky command runs OK in the terminal of Mac
> OS using London's weather file:
> *GenCumulativeSky  +s1  -a 51.15  -o 0.18  -m -0.0 -h 0  -E  -time 0 24
> -date 1 1 12 31 ./London.epw > ./gcs_London.cal*
>
> ... with two lines of error message:
>
>
> *There were 4586 sun up hours in this climate fileTotal Ibh/Lbh: 0.000000*
>
> 2. But I can't get it working at all by running a Python script with the
> following contents:
>
>
> *import oscmd = "GenCumulativeSky  +s1  -a 51.15  -o 0.18  -m -0.0    -h
> 0  -E  -time 0 24  -date 1 1 12 31 ./London.epw >
> ./gcs_London.cal"os.system(cmd)*
>
> There is no error message in the Python IDLE, but the .cal file generated
> is zero ...
>
>
> Moreover, I got a lot more error messages when running the
> gencumulativesky program directly in the terminal of Mac OS X using
> Singapore's weather file:
>
> Command:
> *GenCumulativeSky  +s1  -a 1.37  -o -103.98  -m -120.0    -h 0  -E  -time
> 0 24  -date 1 1 12 31 ./SGP_Singapore.486980_IWEC.epw > ./gcs_SG.cal*
>
> Errors:
>
>
>
>
> *Error!  Solar altitude < 6 degrees and Idh > 10 W/m^2 on day 1!
> Attempting to continue!......Error!  Solar altitude < 6 degrees and Idh >
> 10 W/m^2 on day 365!  Attempting to continue!There were 4354 sun up hours
> in this climate fileTotal Ibh/Lbh: 0.000000*
>
>
> Thanks for your help!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150219/dfc5bc06/attachment.html>


More information about the Radiance-general mailing list