ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/debugcal.csh
Revision: 2.7
Committed: Thu Dec 19 16:56:31 2013 UTC (10 years, 3 months ago) by greg
Content type: application/x-csh
Branch: MAIN
CVS Tags: rad5R2, rad4R2P2, rad5R0, rad5R1, rad4R2, rad4R2P1, rad5R3
Changes since 2.6: +2 -12 lines
Log Message:
Minor changes following on RAYPATH search

File Contents

# User Rev Content
1 greg 1.1 #!/bin/csh -f
2 greg 2.7 # RCSid: $Id: debugcal.csh,v 2.6 2003/02/22 02:07:30 greg Exp $
3 greg 1.1 #
4     # Script to debug cal files for Radiance
5     #
6     # Takes octree and rcalc options as arguments.
7     # One of the rcalc options should be -f calfile.
8 greg 2.3 # Note that the real arguments A1, A2, etc must also be given.
9 greg 1.1 # Input is a ray origin and direction, such as that produced by ximage.
10     #
11     if ( $#argv < 2 ) then
12 greg 2.2 echo "Usage: $0 octree [rcalc options]"
13 greg 1.1 exit 1
14     endif
15    
16 greg 2.4 rtrace -h- -x 1 -odNplL $1 | rcalc -u -e 'Dx=$1;Dy=$2;Dz=$3' \
17 greg 1.1 -e 'Nx=$4;Ny=$5;Nz=$6;Px=$7;Py=$8;Pz=$9' \
18 greg 2.3 -e 'T=$10;Ts=$11' -e 'S:1;Tx:0;Ty:0;Tz:0' \
19 greg 2.2 -e 'Ix:1;Iy:0;Iz:0;Jx:0;Jy:1;Jz:0;Kx:0;Ky:0;Kz:1' \
20 greg 2.4 -e 'Rdot=-Dx*Nx-Dy*Ny-Dz*Nz' -e 'RdotP=Rdot' \
21     -e 'NxP=Nx;NyP=Ny;NzP=Nz' -e 'CrP=A1;CgP=A2;CbP=A3' \
22 greg 2.5 -e 'DxA:0;DyA:0;DzA:0' \
23 greg 2.7 -f rayinit.cal $argv[2-]:q