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 $file $ofile
done

#cdo -selvar,LON,LAT /ftp/fettweis/MARv3.13/PolarRES/Antarctic/MAR-ERA5/*2000*.nc* gridfile.nc

