#!/usr/bin/env bash
f=$1
echo $f
cdo infov $f
name=zos
set -x

cdo -L -setmisstoc,0 -gtc,-100 -selname,$name $f mask_$f
cdo reducegrid,mask_$f -selname,$name $f reduced_$f
cdo verifygrid reduced_$f
cdo -P 4 remapcon,global_1 reduced_$f global_1_$f

