gendaylit error

Dear Radiance experts,

I got the following error message when trying to run "gendaylit 3 2 15.25 -a
42 -o 108 -m 110 -P 1 0.35" in windows command line:

"file coeff_perez.dat cannot be opened"
"lect_coeff_perez does not work"

I've checked that the "coeff_perez.dat" file is inside the C:\Radiance\lib
folder already.

Can you help to advize me the source of this problem and suggest a solution?

The Radiance I'm using is v.3.8 which is installed via installing
DIVAforRhino(version1.1f) from http://diva-for-rhino.com/download.html.

My system is Windows XP 32-bit home edition.

My system PATH is set as:
;C:\Daysim\bin_windows\;C:\Radiance\bin\;C:\DAYSIM

My system RAYPATH is set as:
;C:\Daysim\lib\;.C:\Radiance\lib\;.

Thanks!

Ji

Hi,

I have no experience on Windows-based Radiance installations, but is the backslash really understood in the RAYPATH variable?

Cheers, Lars.

···

My system RAYPATH is set as:
;C:\Daysim\lib\;.C:\Radiance\lib\;.

Dear Ji,

Windows understands backslashes. I just installed the latest version and
gendaylit worked for me. Did you install the latest Daysim and did you
restart your computer?

Christoph

···

-----Original Message-----
From: Lars O. Grobe [mailto:[email protected]]
Sent: Tuesday, December 21, 2010 12:35 PM
To: Radiance general discussion
Subject: Re: [Radiance-general] gendaylit error

Hi,

I have no experience on Windows-based Radiance installations, but is the
backslash really understood in the RAYPATH variable?

Cheers, Lars.

My system RAYPATH is set as:
;C:\Daysim\lib\;.C:\Radiance\lib\;.

Dear Christoph,

After I uninstall and reinstall the latest version of DIVA and Daysim and
restart the computer, no such error message will show up when run gendaylit.

Thank you very much for your advice!

Ji

···

On Wed, Dec 22, 2010 at 2:41 AM, Reinhart, Christoph < [email protected]> wrote:

Dear Ji,

Windows understands backslashes. I just installed the latest version and
gendaylit worked for me. Did you install the latest Daysim and did you
restart your computer?

Christoph

-----Original Message-----
From: Lars O. Grobe [mailto:[email protected]]
Sent: Tuesday, December 21, 2010 12:35 PM
To: Radiance general discussion
Subject: Re: [Radiance-general] gendaylit error

Hi,

I have no experience on Windows-based Radiance installations, but is the
backslash really understood in the RAYPATH variable?

Cheers, Lars.

> My system RAYPATH is set as:
> ;C:\Daysim\lib\;.C:\Radiance\lib\;.

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

I have recently installed RADIANCE 4.1 on my mac (ver 10.7.4) and i
was, up until recently, merrily making my way through Axel's rtcontrib
lesson.

# I am getting stuck when trying to implement gendaylit . . .

# I have what i consider to be acceptable input to gendaylit:

kyle% gendaylit 6 24 11.5 -a 51.15 -o 0.18 -m -0 -W 159 447

# and the error message:

# gendaylit 6 24 11.5 -a 51.15 -o 0.18 -m 0 -W 159 447
file coeff_perez.dat cannot be opened
lect_coeff_perez does not work

# the direct normal value and diffuse horizontal value, along with the
day, month, hour, latitude, longitude, and meridian, are from the
Gatwick epw file GBR_London.Gatwick.037760_IWEC.epw which is
considered by Axel (in his tutorial) to be of sufficient quality to
not produce gendaylit errors, and i think i am pulling realistic
weather values for that time, so i'm perplexed here. And i've tried a
few other times and values, but my guess is that it's not struggling
to make a sky model and giving up.

Is it a simple permission issue?
I've tried chmod 755 and chmod 644 to the coeff_perez.dat but it
already had acceptable permissions assigned to it.

is it a location issue?
the file is in /usr/local/ray/src/gen

is it a PATH issue? (here is from my env)

PATH=/Library/Frameworks/Python.framework/Versions/2.6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/opt/local/sbin:/usr/local/ray/bin

RAYPATH=.:/usr/local/ray/lib

MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11/share/man:/opt/local/share/man:/usr/local/ray/doc/man

Any suggestions would be appreciated, as usual, it is probably
something very simple. . .

-Kyle

Hi Kyle,

How did you install Radiance? Reason I ask is that coeff_perez.dat usually makes its way from /usr/local/ray/src/gen into your library directory (which you are pointing to as /usr/local/ray/lib), but you mention your copy of this .dat file is still only located in the src subdirectory. Running Greg's makeall script or installing the Radiance binaries from the NREL download will place this file in the prescribed lib directory.

- Rob

···

On Jun 28, 2012, at 10:03 PM, kyle konis wrote:

I have recently installed RADIANCE 4.1 on my mac (ver 10.7.4) and i
was, up until recently, merrily making my way through Axel's rtcontrib
lesson.

# I am getting stuck when trying to implement gendaylit . . .

# I have what i consider to be acceptable input to gendaylit:

kyle% gendaylit 6 24 11.5 -a 51.15 -o 0.18 -m -0 -W 159 447

# and the error message:

# gendaylit 6 24 11.5 -a 51.15 -o 0.18 -m 0 -W 159 447
file coeff_perez.dat cannot be opened
lect_coeff_perez does not work

# the direct normal value and diffuse horizontal value, along with the
day, month, hour, latitude, longitude, and meridian, are from the
Gatwick epw file GBR_London.Gatwick.037760_IWEC.epw which is
considered by Axel (in his tutorial) to be of sufficient quality to
not produce gendaylit errors, and i think i am pulling realistic
weather values for that time, so i'm perplexed here. And i've tried a
few other times and values, but my guess is that it's not struggling
to make a sky model and giving up.

Is it a simple permission issue?
I've tried chmod 755 and chmod 644 to the coeff_perez.dat but it
already had acceptable permissions assigned to it.

is it a location issue?
the file is in /usr/local/ray/src/gen

is it a PATH issue? (here is from my env)

PATH=/Library/Frameworks/Python.framework/Versions/2.6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/opt/local/sbin:/usr/local/ray/bin

RAYPATH=.:/usr/local/ray/lib

MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11/share/man:/opt/local/share/man:/usr/local/ray/doc/man

Any suggestions would be appreciated, as usual, it is probably
something very simple. . .

-Kyle

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Hi Rob,

Thanks for the quick reply. Indeed, you are correct, the issue was
solved temporarily buy copying coeff_perez.dat (and defangle.dat) into
/usr/local/ray/lib

Now the question is why where these files not there in the first place?

Most likely user error, as i have just recently installed Radiance
version 4.1, and have had some issues with installing Radiance over an
existing version (v4.0).

Perhaps in my haste during what ended up being multiple installs, i
was not thoroughly following the instructions here:

http://www.radiance-online.org:82/download-install/installation-information/mac-osx-1

···

###
Make the library files (dont forget the dot (.) before the /makeall !)

    cd /usr/local/ray
    ./makeall library

Be sure to specify /usr/local/ray/lib in the next step instead of the
default /usr/local/lib/ray:

    "Where do you want the library files [/usr/local/lib/ray]" <type
/usr/local/ray/lib - hit return>
###

Should the . . . .

./makeall library

. . . command place coeff_perez.dat into my /usr/local/ray/lib ?

I'll give it (the install) a try from scratch tomorrow . . .

-Kyle

If you just run the makeall script, it will ask you if you want to install
the lib files. Simply say yes and pick a location. Then make sure your
RAYPATH env variable matches that location and you should be good to go!

Rob Guglielmetti IESNA, LEED AP
Commercial Buildings Research Group
National Renewable Energy Laboratory
15013 Denver West Parkway MS:RSF202
Golden, CO 80401
303.275.4319
[email protected]

···

On 6/28/12 11:39 PM, "kyle konis" <[email protected]> wrote:

Hi Rob,

Thanks for the quick reply. Indeed, you are correct, the issue was
solved temporarily buy copying coeff_perez.dat (and defangle.dat) into
/usr/local/ray/lib

Now the question is why where these files not there in the first place?

Most likely user error, as i have just recently installed Radiance
version 4.1, and have had some issues with installing Radiance over an
existing version (v4.0).

Perhaps in my haste during what ended up being multiple installs, i
was not thoroughly following the instructions here:

http://www.radiance-online.org:82/download-install/installation-informatio
n/mac-osx-1

###
Make the library files (dont forget the dot (.) before the /makeall !)

   cd /usr/local/ray
   ./makeall library

Be sure to specify /usr/local/ray/lib in the next step instead of the
default /usr/local/lib/ray:

   "Where do you want the library files [/usr/local/lib/ray]" <type
/usr/local/ray/lib - hit return>
###

Should the . . . .

./makeall library

. . . command place coeff_perez.dat into my /usr/local/ray/lib ?

I'll give it (the install) a try from scratch tomorrow . . .

-Kyle

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Hi Kyle,

You are correct, the "makeall library" command was the culprit. Before gendaylit was added, none of the auxiliary files had the *.dat suffix, so these weren't copied by this command. I have corrected this oversight now, thanks to you.

Best,
-Greg

···

From: kyle konis <[email protected]>
Date: June 28, 2012 10:39:40 PM PDT

Hi Rob,

Thanks for the quick reply. Indeed, you are correct, the issue was
solved temporarily buy copying coeff_perez.dat (and defangle.dat) into
/usr/local/ray/lib

Now the question is why where these files not there in the first place?

Most likely user error, as i have just recently installed Radiance
version 4.1, and have had some issues with installing Radiance over an
existing version (v4.0).

Perhaps in my haste during what ended up being multiple installs, i
was not thoroughly following the instructions here:

http://www.radiance-online.org:82/download-install/installation-information/mac-osx-1

###
Make the library files (dont forget the dot (.) before the /makeall !)

   cd /usr/local/ray
   ./makeall library

Be sure to specify /usr/local/ray/lib in the next step instead of the
default /usr/local/lib/ray:

   "Where do you want the library files [/usr/local/lib/ray]" <type
/usr/local/ray/lib - hit return>
###

Should the . . . .

./makeall library

. . . command place coeff_perez.dat into my /usr/local/ray/lib ?

I'll give it (the install) a try from scratch tomorrow . . .

-Kyle