Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

rpict can't find rayinit.cal

asked 2017-10-30 17:44:06 -0600

Determinant's avatar

updated 2017-10-31 08:29:36 -0600

When I run this command:

rpict -av .3 .3 .3 -ab 0 -ad 512 -as 256 -dj 1 -dp 1 -dt 0 -dc 1 -lw 0.001 -x 300 -y 300 -vth -vh 180 -vv 180 -vp 19.115 6.058 1.189 -vd 0.000 -1.000 0.000 -vu 0 0 1 090_10-scene.oct

in the directory where 090_10-scene.oct is I get this error:

rpict: fatal - cannot find function file "rayinit.cal"

rayinit.cal is in my radiance /lib directory. I've tried adding radiance's /lib to PATH (already had /bin) and also tried just copying rayinit.cal directly to the /bin directory but none of these worked.

Radiance was installed by OpenStudio but I'm using Radiance on it's own now, just running this command to test something. This command worked when I was using Windows 10 but now I'm running lubuntu 14.04.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2017-10-30 20:56:42 -0600

Further to what Nathaniel said, I recommend adding the current directory (".") to RAYPATH. I'm sorry we were never able to reliably set these environment variables for the user when they install OpenStudio on all platforms; we can force Radiance to work properly within OpenStudio, but for reliable operation of your OpenStudio-Radiance install outseide of OpenStudio, I recommend adding the following to your ~/.bash_profile file (Mac and Linux):

PATH=.:/usr/local/radiance/bin:$PATH
RAYPATH=.:/usr/local/radiance/lib
MANPATH=/usr/local/radiance/doc/man/:$MANPATH
export PATH RAYPATH MANPATH

This will: append the current directory and the openstudio radiance install bin directory to your PATH; append current dir and openstudio radiance install lib directory to a sysvar called RAYPATH; and append the manpages location to your existing MANPATH. Having the manpages directory in your environment allows you to simply type e.g. man rcontrib and be reading the docs for rcontrib right in your shell. Pro tip!

edit flag offensive delete link more

Comments

1

I would suggest adding . after $PATH instead of at the beginning as noted in this stackexchange post. Adding . to your path can have unintended consequences if you are unaware of what it means.

MarkAdams's avatar MarkAdams  ( 2017-10-30 22:13:23 -0600 )edit

Different strokes...

rpg777's avatar rpg777  ( 2017-10-31 11:05:43 -0600 )edit

so far with things like this I've been editing the /etc/environment instead of ~/.bash_profile., any foreseen disadvantages/problems foreseen in doing it this way?

Determinant's avatar Determinant  ( 2017-11-01 21:26:43 -0600 )edit

Wow, yeah I've never heard of people using /etc/environment for these kinds of tweaks. That's more for system-level stuff, whereas the ~/.bash_profile is more for user-level customization.

rpg777's avatar rpg777  ( 2017-11-02 10:31:46 -0600 )edit
1

Success. I ended up using ~/.profile. I had wanted it to be for all users but I actually couldn't get /etc/environment to set anything except PATH

Determinant's avatar Determinant  ( 2017-11-04 15:54:50 -0600 )edit
1

answered 2017-10-30 18:36:45 -0600

Radiance uses the RAYPATH environment variable to find its /lib directory, so when you're not running from within OpenStudio, be sure RAYPATH is set.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2017-10-30 17:44:06 -0600

Seen: 721 times

Last updated: Oct 30 '17