#!/bin/sh
#
# this routine compares two grib2 files
# the files must have the same fields in the same order
# only show correlatins < 0.999
#
# set -x

# for wgrib2 v2.0.2+
wgrib2 $2 -var -lev -rpn "sto_1" -import_grib $1 -rpn "rcl_1:print_corr:print_rms" | \
egrep -v ":rpn_corr=(1|0\.999)"
exit


