#!/bin/sh

set -x

thisrun=$1
date=$2
the_run=$3
#
if [ "$thisrun" = '00' ]; then
  #no data for pcpn probs at hr 00
  echo "Exit now as I can not produce probs at hour f00"
  exit 0
fi

model=spcsref_${date}${the_run}f0${thisrun}

echo "Looking for the file ${model}"

$GEMEXE/gddiag << EOF

 GDFILE   = ./$model 
 GDOUTF   = ./$model 
 GFUNC    = snowfallm
 GDATTIM  = LAST
 GLEVEL   = 0
 GVCORD   = n
 GRDNAM   = s03i
 GRDTYP   = S
 GPACK    =  
 GRDHDR   =  
 PROJ     =  
 GRDAREA  = grid
 KXKY     = 
 MAXGRD   =  
 CPYFIL   =  
 ANLYSS   =  

r

ex


EOF

$GEMEXE/gpend


