#!/bin/bash -x
#
# Verifica se foi passado algum parametro

####cdo -f grb -copy ERA5-u10_v10_mls-2015020200-2015021000.nc ERA5-u10_v10_mls-2015020200-2015021000.grib

nrec=1
while ((${nrec}<=40)); do
   ~/Versoes/eta-v1.4.4-desenv/datain/util/wgrib -d $nrec  surface.grb \
                     -nh -bin  -append -o teste.bin >> log
let nrec=${nrec}+1
done

exit

