
module load CDO/1.9.8-foss-2015a 

file=$1
mask=$2

# peninsula
cdo mul $file $mask $file-tmp
cdo sellonlatbox,-11,5.8,34.8,45 $file-tmp $file-peninsula
rm $file-tmp

##canarias
cdo mul $file $mask $file-tmp
cdo sellonlatbox,-20,-10,24,31, $file-tmp $file-canarias
rm $file-tmp

