#!/usr/bin/tcsh

set first = 151
set last = 199

set i = $first
while ( $i <= $last )
	set j = `echo $i | awk '{printf("%04d",$0)}'`
	set f = multifield.$j
	echo Converting $f
	gunzip < $f.txt.gz | tail +18451200 | head -148800 > zslices/$f.zslice.txt
	@ i ++
end

