NMAP Loops (#1562)

Hi,

We are having a very strange problem with NMAP not reading the decoded
grib files correctly.  Gempak seems to be reading them for the maps I
create, with the exception of the first time period. However the loops
are not loading.
This problem first appeared between 12 Z January 22 and 00 Z January 23.
We have not made any changes to the decoding process (we use nagrib to
decode the grib files) before or after this date.  This problem is
apparent on using NMAP 5.7.3 and 5.9.3.

Here's the script we are using:

#!/bin/csh #
#  CONVERT_GEMPAK.csh
#
#  This is a simple script to write model GRIB data to a GEMPAK
#  file using the NAGRIB program found in the NAWIPS distribution.
#
########################################################################

#  BEGIN THE SCRIPT

#  Check to see if the user has the NAWIPS environmental variables set.
#  Uncomment out the following line if NAWIPS is not included in the
#  users environment.
#
#  setenv NAWIPS /usr1/nawips
if ( $?NAWIPS ) then
  source $NAWIPS/Nawips.cshrc
else
  echo "WARNING: Please Define the location of the NAWIPS distribution
at the top"
  echo "         of ${GMASTER_BIN}/convert_gempak and rerun the script.
- EXIT"
  exit 1
endif

set YYMMDDHH =3D $1
set MODEL    =3D $2
set SUFFX    =3D $3

if ( ! -e ${GRIB_PATH}/.local_gribs || -z ${GRIB_PATH}/.local_gribs )
then
  echo " "
  echo "   ERROR: No grib files found - EXIT"
  echo " "
  exit 1
endif

set GRIBS =3D `cat ${GRIB_PATH}/.local_gribs`

set GEMFILE =3D ${YYMMDDHH}_${MODEL}_${SUFFX}.gem

if ( ! -e ${GEM_PATH} ) mkdir -p ${GEM_PATH}

echo "  CONVERT: Creating GEMPAK file ${GEM_PATH}/${GEMFILE}"

if ( -e gemfile ) rm -f gemfile

echo "INDXFL   =3D           "  > gemfile
echo "GDOUTF   =3D ${GEM_PATH}/${GEMFILE}" >> gemfile
echo "PROJ     =3D           " >> gemfile
echo "GRDAREA  =3D           " >> gemfile
echo "KXKY     =3D           " >> gemfile
echo "MAXGRD   =3D 29999     " >> gemfile
echo "CPYFIL   =3D GDS       " >> gemfile
echo "GAREA    =3D           " >> gemfile
echo "OUTPUT   =3D F/${GEM_PATH}/nagrib.fil" >> gemfile
echo "GBTBLS   =3D           " >> gemfile
echo "GBDIAG   =3D           " >> gemfile

foreach GRIB ($GRIBS)
  echo "GBFILE   =3D ${GRIB_PATH}/${GRIB}" >> gemfile
  echo "run               " >> gemfile
  echo "                  " >> gemfile
end

echo "exit"                  >> gemfile

$GEMEXE/nagrib < gemfile >& /dev/null
$GEMEXE/gpend            >& /dev/null

rm -f gemfile *.nts >& /dev/null

#  End of the Show
exit 0

Anyone have any ideas?

Thanks,
Charley

Charley Knoderer
Meteorologist II
Sonoma Technology, Inc.
1360 Redwood Way, Suite C
Petaluma, CA  94954
http://www.sonomatech.com
Phone: (707) 665-9900
Fax: (707) 665-9800





  • 2007 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the gembud archives: