Path problem

Dear Ray lovers!

Whenever I want to run a Radiance program using MATLAB environment, I have
to add the path before the command, otherwise it returns "command not
found". But even adding that for the command below I get this error "Use of
uninitialized value in split at /usr/local/ray/bin/genskyvec line 129, <>
line 17." and some other lines of similar error.

Matlab command:
unix('/usr/local/ray/bin/gendaylit 03 12 07:35 -a 48.2 -o -16.37 -m -15 -W
3.26 67.30 | /usr/local/ray/bin/genskyvec -m 1 -c 1 1 1 filename.dat')

but if I return this command in Terminal I get no error and works
perfectly. Any idea why is it like that and what should I do?

Cheers, Ehsan

Hi Eshan,

Your error does not really make sense, since the first use of "split" in genskyvec happens at line 39.

I don't know why you included "filename.dat" at the end of your command, unless you wanted to redirect output to it, in which case you need to include the '>' character before it.

Finally, I believe you need to set the PATH variable to locate Radiance Perl scripts rather than simply executing them by explicit paths, because they in turn call other Radiance programs that will not be found if the PATH environment variable doesn't include the appropriate executable directory.

Cheers,
-Greg

···

From: "Ehsan M.Vazifeh" <[email protected]>
Subject: [Radiance-general] Path problem
Date: July 24, 2014 5:00:19 AM PDT

Dear Ray lovers!

Whenever I want to run a Radiance program using MATLAB environment, I have to add the path before the command, otherwise it returns "command not found". But even adding that for the command below I get this error "Use of uninitialized value in split at /usr/local/ray/bin/genskyvec line 129, <> line 17." and some other lines of similar error.

Matlab command:
unix('/usr/local/ray/bin/gendaylit 03 12 07:35 -a 48.2 -o -16.37 -m -15 -W 3.26 67.30 | /usr/local/ray/bin/genskyvec -m 1 -c 1 1 1 filename.dat')

but if I return this command in Terminal I get no error and works perfectly. Any idea why is it like that and what should I do?

Cheers, Ehsan

Hi Dr. Ward,

I add some path in MATLAB and it seems to be working! I just had to copy
two files of rayini.cal, perezlum.cal in the MATLAB directory. Thanks a lot.

Ehsan

···

On 24 Jul 2014, at 17:16, Greg Ward <[email protected]> wrote:

Hi Eshan,

Your error does not really make sense, since the first use of "split" in
genskyvec happens at line 39.

I don't know why you included "filename.dat" at the end of your command,
unless you wanted to redirect output to it, in which case you need to
include the '>' character before it.

Finally, I believe you need to set the PATH variable to locate Radiance
Perl scripts rather than simply executing them by explicit paths, because
they in turn call other Radiance programs that will not be found if the
PATH environment variable doesn't include the appropriate executable
directory.

Cheers,
-Greg

*From:*"Ehsan M.Vazifeh" <[email protected]>
*Subject:*[Radiance-general] Path problem
*Date:*July 24, 2014 5:00:19 AM PDT

Dear Ray lovers!

Whenever I want to run a Radiance program using MATLAB environment, I have
to add the path before the command, otherwise it returns "command not
found". But even adding that for the command below I get this error "Use of
uninitialized value in split at /usr/local/ray/bin/genskyvec line 129, <>
line 17." and some other lines of similar error.

Matlab command:
unix('/usr/local/ray/bin/gendaylit 03 12 07:35 -a 48.2 -o -16.37 -m -15 -W
3.26 67.30 | /usr/local/ray/bin/genskyvec -m 1 -c 1 1 1 filename.dat')

but if I return this command in Terminal I get no error and works
perfectly. Any idea why is it like that and what should I do?

Cheers, Ehsan

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

I find the solution, easy and maybe dumb, is to start matlab in the terminal.
try
matlab -nodektop
then if you like to start the GUI type desktop
should all work provided the .bash_profile is set (i you are on a mac)
`G

···

On 25 Jul 2014, at 08:56, Ehsan M.Vazifeh <[email protected]> wrote:

Hi Dr. Ward,

I add some path in MATLAB and it seems to be working! I just had to copy two files of rayini.cal, perezlum.cal in the MATLAB directory. Thanks a lot.

Ehsan

On 24 Jul 2014, at 17:16, Greg Ward <[email protected]> wrote:

Hi Eshan,

Your error does not really make sense, since the first use of "split" in genskyvec happens at line 39.

I don't know why you included "filename.dat" at the end of your command, unless you wanted to redirect output to it, in which case you need to include the '>' character before it.

Finally, I believe you need to set the PATH variable to locate Radiance Perl scripts rather than simply executing them by explicit paths, because they in turn call other Radiance programs that will not be found if the PATH environment variable doesn't include the appropriate executable directory.

Cheers,
-Greg

From:"Ehsan M.Vazifeh" <[email protected]>
Subject:[Radiance-general] Path problem
Date:July 24, 2014 5:00:19 AM PDT

Dear Ray lovers!

Whenever I want to run a Radiance program using MATLAB environment, I have to add the path before the command, otherwise it returns "command not found". But even adding that for the command below I get this error "Use of uninitialized value in split at /usr/local/ray/bin/genskyvec line 129, <> line 17." and some other lines of similar error.

Matlab command:
unix('/usr/local/ray/bin/gendaylit 03 12 07:35 -a 48.2 -o -16.37 -m -15 -W 3.26 67.30 | /usr/local/ray/bin/genskyvec -m 1 -c 1 1 1 filename.dat')

but if I return this command in Terminal I get no error and works perfectly. Any idea why is it like that and what should I do?

Cheers, Ehsan

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

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