for i in carbon.$1*hdf
do
echo $i
echo ${i:7:4}

gzip $i
tar -rvf carbon.v.${i:7:4}.tar $i.gz

done

tar -tvf carbon.v.${i:7:4}.tar

