[Radiance-general] translate UNIX command into Windows command

Ji Zhang hope.zh at gmail.com
Tue Jul 27 05:50:19 PDT 2010


 Dear Thomas and Radiance experts, one more question:

If I want to execute this rtrace command in windows via python, should I use
the tri-quotation symbol?

Is the following python script correct?

##################################################################################
import os

rtrace_command = ''rtrace -I -ab 1 -h -w -oov -u- scene.oct < sensor.pts > "
+\
                               """rcalc -e
"$1=$1;$2=$2;$3=$3;$4=179*(.265*$4+.670*$5+.065*$6)" > result.dat"""

os.system(rtrace_command)
##################################################################################


Thanks!

Ji



On Tue, Jul 27, 2010 at 7:50 PM, Thomas Bleicher
<tbleicher at googlemail.com>wrote:

> Ji
>
> On Tue, Jul 27, 2010 at 10:05 AM, Ji Zhang <hope.zh at gmail.com> wrote:
> > I've tried the following in Windows, but it doesn't seem to work:
> >
> > rtrace -I -ab 1 -h -w -oov -u- scene.oct < sensor.pts > rcalc -e
> > '$1=$1;$2=$2;$3=$3;$4=179*(.265*$4+.670*$5+.065*$6)' > result.dat
>
> The Windows command prompt doesn't understand single quotes. Use
> double quotes for the "rcalc -e" expression and it should work:
>
> rtrace -I -ab 1 -h -w -oov -u- scene.oct < sensor.pts > rcalc -e
> "$1=$1;$2=$2;$3=$3;$4=179*(.265*$4+.670*$5+.065*$6)" > result.dat
>
>
> Thomas
>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-general/attachments/20100727/71b3ef1f/attachment.html


More information about the Radiance-general mailing list