#!/bin/csh -f
# File: imgRGB2wff
# Author: K.R. Sloan
# Last Modified: 15 February 1991
# Purpose: convert an Img r,g,b set of files to wff
# Use:  
#       imgRGB2wff Img 
set args = `cat $1.a`
set dims = `ImgDimensions $args`
zcat $1.r | UBC2wff $dims -z 1 | Flip -y > $1.r.wff
zcat $1.g | UBC2wff $dims -z 1 | Flip -y > $1.g.wff
zcat $1.b | UBC2wff $dims -z 1 | Flip -y > $1.b.wff
Combine -b RGB $1.r.wff $1.g.wff $1.b.wff | compress -f >$1.wff.Z
rm -f $1.r.wff
rm -f $1.g.wff
rm -f $1.b.wff
echo -30-
