for file in /ftp/fettweis/MARv3.13/PolarRES/Antarctic/MAR-*/*;do
	ofile=$(echo $file | rev | cut -d'/' -f 1 | rev)
	echo $ofile
	#cdo sellevel,0.9997479 -selvar,TTMAX,TT $file $ofilei.tt
	#cdo selvar,SF,RF $file $ofile.pr
	cdo merge $ofile $ofile.pr $ofile.tot
	#rm $ofile.tt $ofile.pr
done

