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

Comparing ray/src/px/falsecolor.csh (file contents):
Revision 2.15 by greg, Fri Nov 18 22:50:21 2005 UTC vs.
Revision 2.17 by greg, Wed Nov 15 08:17:13 2006 UTC

# Line 11 | Line 11 | set mult=179
11   set label=Nits
12   set scale=1000
13   set decades=0
14 # set redv='1.6*v-.6'
15 # set grnv='if(v-.375,1.6-1.6*v,8/3*v)'
16 # set bluv='1-8/3*v'
14   set redv='def_red(v)'
15   set grnv='def_grn(v)'
16   set bluv='def_blu(v)'
# Line 40 | Line 37 | while ($#argv > 0)
37          case -s:
38                  shift argv
39                  set scale="$argv[1]"
40 +                if ("$scale" =~ [aA]*) set needfile
41                  breaksw
42          case -l:
43                  shift argv
# Line 61 | Line 59 | while ($#argv > 0)
59                  shift argv
60                  set bluv="$argv[1]"
61                  breaksw
62 +        case -spec:
63 +                set redv='1.6*v-.6'
64 +                set grnv='if(v-.375,1.6-1.6*v,8/3*v)'
65 +                set bluv='1-8/3*v'
66 +                breaksw
67          case -i:
68                  shift argv
69                  set picture="$argv[1]"
# Line 98 | Line 101 | while ($#argv > 0)
101          shift argv
102   end
103   mkdir $td
104 + if ($?needfile && "$picture" == '-') then
105 +        cat > $td/picture
106 +        set picture=$td/picture
107 + endif
108 + if ("$scale" =~ [aA]*) then
109 +        set LogLmax=`phisto $picture | tail -2 | sed -n '1s/    [0-9]*$//p'`
110 +        set scale=`ev "$mult/179*10^$LogLmax"`
111 + endif
112   cat > $td/pc0.cal <<_EOF_
113   PI : 3.14159265358979323846 ;
114   scale : $scale ;
# Line 171 | Line 182 | if ("$cpict" == "") then
182          set pc1args=($pc1args -e 'ra=0;ga=0;ba=0')
183   else if ("$cpict" == "$picture") then
184          set cpict=
174 endif
175 if ($?needfile && "$picture" == '-') then
176        cat > $td/picture
177        set picture=$td/picture
185   endif
186   if ("$decades" != "0") then
187          set pc1args=($pc1args -e "map(x)=if(x-10^-$decades,log10(x)/$decades+1,0)")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines