#! /bin/csh -f


foreach i ($1)
    echo $i
    cnvgrib -g12 $i ${i}.grib2
    if ($status == 0) then
	rm $i
    endif
end

exit
