#!/bin/ksh -e
#ryj: select 2 pressure levels (10 and 50 hPa) requested by CMAMdyn project

if [ $# -ne 3 ] ; then
  echo "Error in $0: invalid number of arguments $#"
  exit 1
fi

plv="    2";
p01="   10"; p02="   50"; 

echo "SELLEV    $plv$p01$p02" > ic.sellev

pfx=$1
inp=$2
out=$3

release inp ${pfx}_${out}
access  inp ${pfx}_${inp}

sellev  inp ${pfx}_${out} input=ic.sellev
release inp



