for i in vgpm.$1*hdf
do
echo $i
echo ${i:5:4}

gzip $i
tar -rvf vgpm.v.${i:5:4}.tar $i.gz

done

tar -tvf vgpm.v.${i:5:4}.tar

