
folders=/ftp/fettweis/MARv3.13/PolarRES/Antarctic

for folder in $folders/* ; do
for file in $folder/* ; do
	folder_string=$(echo $folder| cut -d'/' -f 7)
	file_string=$(echo $file| cut -d'/' -f 8)
	echo $folder_string
	echo $file
	cdo -selvar,SF,RF,SU,FRA $file $folder_string/$file_string
done
done
