47 |
|
set curfi=1 |
48 |
|
while ($curfi < $#fields) |
49 |
|
@ nextfi = $curfi + 1 |
50 |
+ |
if ($curfr < 10) then |
51 |
+ |
set fid=000$curfr |
52 |
+ |
else if ($curfr < 100) then |
53 |
+ |
set fid=00$curfr |
54 |
+ |
else if ($curfr < 1000) then |
55 |
+ |
set fid=0$curfr |
56 |
+ |
else |
57 |
+ |
set fid=$curfr |
58 |
+ |
endif |
59 |
|
pcomb -e 'ro=ri(fld); go=gi(fld); bo=bi(fld)' \ |
60 |
|
-e 'yd=yres-1-y; odd=.5*yd-floor(.5*yd)-.25' \ |
61 |
|
-e "fld=if(odd,2-$odd_first,1+$odd_first)" \ |
62 |
|
$fields[$curfi]:q $fields[$nextfi]:q \ |
63 |
< |
> "${basenm}C$curfr.$ext" |
63 |
> |
> "${basenm}C$fid.$ext" |
64 |
|
if ($?remove_orig) rm $fields[$curfi]:q $fields[$nextfi]:q |
65 |
|
@ curfr++ |
66 |
|
@ curfi = $nextfi + 1 |