This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Tony, Your "setenv PATH" line is wrapped. If that is the way it exists in your file, then that is wrong- and should be all on 1 line. Also the the following should be a single line: echo "Please check `hostname` on $TEST for nids generation $FILENAME $GIFFILE" | \ These might have been wrapped in the mail when I sent it to you, or vice veras. Tell me if these exist in the copy you are trying to run. Steve Chiswell Unidata User Support >From: Anthony Rockwood - MSCD Meteorology <address@hidden> >Organization: . >Keywords: 200004062242.QAA25193 >Chiz, > >Ok, here's my script and pqact.conf entry. > >****************************************************************************** > ***** >#!/bin/csh -f > >setenv DISPLAY wxbox:0.0 >setenv PATH >/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/ucb:.:/usr/local/ldm/bin >setenv LD_LIBRARY_PATH /usr/openwin/lib:/usr/dt/lib:/opt/SUNWspro/lib > >source /usr/local/gempak > > >setenv NEX /var/data/ldm/gempak/tmp/nids > >set FILENAME=$1 >set GIFFILE=$2 > >cd /export/home/archive/public_html/radar > >set LOCK=.inuse.$$ >touch $LOCK >sleep 5 > >@ COUNT = 0 >set TEST=`ls .inuse.* | head -1` >while(($TEST != $LOCK)&&($COUNT < 61)) > sleep 10 > set TEST=`ls .inuse.* | head -1` > if($COUNT == 60) then > echo "Please check `hostname` on $TEST for nids generation $FILENAME >$GIFFILE" | \ > /usr/ucb/Mail -s NIDS address@hidden > rm $LOCK > rm $NEX/${FILENAME} > exit 0 > endif > @ COUNT = $COUNT + 1 >end > >if(-e $GIFFILE) then > rm -f $GIFFILE >endif > >set YMD=`echo $FILENAME | cut -f3 -d_ | cut -c1-6` >set HHMM=`echo $FILENAME | cut -f3 -d_ | cut -c7-10` >set TYPE=`echo $FILENAME | cut -f1 -d_` >set SITE=`echo $FILENAME | cut -f2 -d_` >set TITLE="NIDS $SITE $TYPE ${YMD}/${HHMM}" > >if($TYPE == 'BREF1') then > set TITLE="NIDS $SITE Base Reflectivity ${YMD}/${HHMM}" >endif >if($TYPE == 'VEL1') then > set TITLE="NIDS $SITE Radial Velocity ${YMD}/${HHMM}" >endif >if($TYPE == 'SRMV1') then > set TITLE="NIDS $SITE Storm Relative Velocity ${YMD}/${HHMM}" >endif > >gpmap_gf << EOF > \$mapfil = hicnus.uni+hipowo.cia+rdus.uni+rdis.uni > MAP = 8/1/1+1/1/2+15/1/1+2/1/2 > GAREA = dset > PROJ = rad > SATFIL = > RADFIL = \$NEX/${FILENAME} > LATLON = 0 > PANEL = 0 > TITLE = 5/-1/$TITLE > TEXT = 1/22/1/hw > CLEAR = y > DEVICE = gf|${GIFFILE} > LUTFIL = osf_ref16.tbl > STNPLT = 5|0|disco_sites.tbl > r > > e >EOF > >rm -f $NEX/${FILENAME} >rm -f $LOCK > >#pqinsert $GIFFILE > >set LAST=`echo $GIFFILE | cut -f1,2 -d_` >if(-e $LAST.gif) then > rm -f $LAST.gif >endif >mv $GIFFILE $LAST.gif > >exit 0 ># -------------- end script ------------------------------- > >**** pqact.conf entry ******************************************************** > *************** ># ># NIDS gif generator ># >WSI ^NEX/(FTG)/(BREF1)/..([0-9][0-9])([0-1][0-9])([0-3][0-9])([0-2][0-9])([ > 0-6][0-9]) > FILE -close /var/data/ldm/gempak/tmp/nids/\2_\1_\3\4\5\6\7.nex >WSI ^NEX/(FTG)/(BREF1)/..([0-9][0-9])([0-1][0-9])([0-3][0-9])([0-2][0-9])([ > 0-6][0-9]) > EXEC util/NIDS_gif.csh \2_\1_\3\4\5\6\7.nex\1_\2_\3\4\5\6\7.gif > >********************************** > >Sorry to keep bugging you with this, but we're stumped. > >Thanks, > >Tony > > **************************************************************************** > Anthony A. Rockwood Metropolitan State College of Denver > Meteorology Program Dept.of Earth and Atmospheric Sciences > 303.556.8399 P.O. Box 173362, Campus Box 22 > address@hidden Denver, CO 80217-3362 > http://www.mscd.edu/~eas http://clem.mscd.edu/~rockwooa > **************************************************************************** > >