ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/ran2tiff.csh
(Generate patch)

Comparing ray/src/px/ran2tiff.csh (file contents):
Revision 2.1 by greg, Sat Sep 17 05:14:14 2005 UTC vs.
Revision 2.4 by greg, Sat Aug 25 15:39:47 2012 UTC

# Line 20 | Line 20 | while ("$argv[1]" =~ -*)
20                  breaksw
21          case -D:
22                  shift argv
23 +                if (! -d $argv[1]:q ) then
24 +                        echo "Directory $argv[1] does not exist"
25 +                        exit 1
26 +                endif
27                  set outdir=$argv[1]:q/
28                  breaksw
29          case -h*:
# Line 61 | Line 65 | if ($#argv < 2) then
65          exit 1
66   endif
67   # Get shrunken image luminances
68 < set vald=/tmp/val$$
65 < mkdir $vald
68 > set vald=`mktemp -d /tmp/val.XXXXXX`
69   foreach inp ($argv:q)
70          set datf="$inp:t"
71          set datf="$vald/$datf:r.dat"
# Line 91 | Line 94 | foreach inp ($argv:q)
94          set datf="$vald/$datf:r.dat"
95          set outp="$inp:t"
96          set outp="$outdir$outp:r.tif"
94        endif
97          histo $Lmin $Lmax $histosiz < $datf > $vald/newhisto.dat
98          if (-f $vald/oldhisto.dat) then
99                  rlam $vald/newhisto.dat $vald/oldhisto.dat \
# Line 104 | Line 106 | foreach inp ($argv:q)
106                  | ra_tiff $tfopts - $outp:q
107          mv $vald/{,old}histo.dat
108   end
109 < if ($?histof) cp -f $vald/oldhisto.dat $histof
109 > if ($?histof) then
110 >        cp -f $vald/oldhisto.dat $histof
111 > endif
112   rm -rf $vald

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines