--- ray/src/util/debugcal.csh 1993/05/27 13:41:12 2.4 +++ ray/src/util/debugcal.csh 2013/12/19 16:56:31 2.7 @@ -1,5 +1,5 @@ #!/bin/csh -f -# SCCSid "$SunId$ LBL" +# RCSid: $Id: debugcal.csh,v 2.7 2013/12/19 16:56:31 greg Exp $ # # Script to debug cal files for Radiance # @@ -12,16 +12,6 @@ if ( $#argv < 2 ) then echo "Usage: $0 octree [rcalc options]" exit 1 endif -if ( ! $?RAYPATH ) then - set RAYPATH=.:/usr/local/lib/ray -endif -set initfile= -foreach d (`echo $RAYPATH | sed 's/:/ /g'`) - if ( -r $d/rayinit.cal ) then - set initfile="-f $d/rayinit.cal" - break - endif -end rtrace -h- -x 1 -odNplL $1 | rcalc -u -e 'Dx=$1;Dy=$2;Dz=$3' \ -e 'Nx=$4;Ny=$5;Nz=$6;Px=$7;Py=$8;Pz=$9' \ @@ -29,4 +19,5 @@ rtrace -h- -x 1 -odNplL $1 | rcalc -u -e 'Dx=$1;Dy=$2; -e 'Ix:1;Iy:0;Iz:0;Jx:0;Jy:1;Jz:0;Kx:0;Ky:0;Kz:1' \ -e 'Rdot=-Dx*Nx-Dy*Ny-Dz*Nz' -e 'RdotP=Rdot' \ -e 'NxP=Nx;NyP=Ny;NzP=Nz' -e 'CrP=A1;CgP=A2;CbP=A3' \ - $initfile $argv[2-]:q + -e 'DxA:0;DyA:0;DzA:0' \ + -f rayinit.cal $argv[2-]:q