:
#
# add " grid=n " to the index file
#
echo "here now"
tmpfile1=/tmp/junk1.$$$
tmpfile2=/tmp/junk2.$$$

# extract "grid=n"
wgrib $1 -V |  grep " grid=" | sed -e 's/^.*grid=/grid=/' -e 's/ .*$//' >$tmpfile1
wgrib $1 -s >$tmpfile2
paste -d: $tmpfile2 $tmpfile1
rm $tmpfile1 $tmpfile2

exit 0
