Newsgroups: sci.image.processing,comp.graphics
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!news.duke.edu!eff!usenet.ins.cwru.edu!howland.reston.ans.net!agate!sunsite.doc.ic.ac.uk!pipex!lyra.csx.cam.ac.uk!warwick!nott-cs!pat!nwg
From: nwg@pat.cs.nott.ac.uk (Nigel Garnham)
Subject: Re: ?? Sun Rasterfile Conversion ??
Message-ID: <1994Nov6.114240.1988@cs.nott.ac.uk>
Sender: nwg@pat (Nigel Garnham)
Organization: University of Nottingham, United Kingdom
References:  <1994Nov3.233038.23594@cs.nott.ac.uk>
Date: Sun, 6 Nov 94 11:42:40 GMT
Lines: 26
Xref: glinda.oz.cs.cmu.edu sci.image.processing:10721 comp.graphics:64051

Thanks to everyone who responded to my request for an easy way
of converting a large sequence of sun rasterfiles.

In the end I used the Khoros rast2viff command in a little shell
script:

#!/bin/sh
 
for I in `ls claire1*`
do
    FILENO=`echo $I | awk -Fclaire '{print $2}'`
    rast2viff -i claire$FILENO -o claire1$FILENO.vif -p 0
    vconvert -i claire1$FILENO.vif -o claire1$FILENO.vif -t "byte"
 
done


where claire1* is a sequence starting at claire000 to claire169

-- 
     \\\//
     (o o)
--ooO-(_)-Ooo----------------------------------------------------------
  Nigel Garnham | University of Nottingham, UK | nwg@eee.nott.ac.uk


