[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20050928: I don't think I have my pqact file set right for this.....



Kevin,

Your EXEC lines below have an extra unmatched ")" character following the "km"
that will prevent the pattern action from matching any products.
Since you are not referencing any matched fields, you do not need any "(...)" 
delimeters, but they won't hurt, except in your case where they are not 
correctly
matched up.

Steve Chiswell
Unidata User Support



>From: "Kevin Polston" <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200509282301.j8SN1xG7028553

>This is a multi-part message in MIME format.
>--------------070306000904040800010207
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>Content-Transfer-Encoding: 7bit
>
>Hey Steve,
>
>I am trying to set up my pqact.conf file to run a script upon receipt of 
>certain satellite data. I've attached the relevant portion of my 
>pqact.conf file and the two scripts I am using. When I ran the ldmadmin 
>pqactcheck I got no errors but I am also not getting the script to run. 
>What is frustrating is I had a similar script set up to run upon receipt 
>of the 1km FNEXRAD radar imagery and it ran fine. But I lost that when I 
>upgraded my system. So I followed the examples from the Unidata mail 
>archives but I am missing something since the script it is not being 
>run. I hope you have the answer....but then you always have the answer! 
>  :-)
>
>Thanks Steve,
>
>
>Kevin Polston
>Senior Instructor, NWSTC
>Kansas City MO 64152
>
>816-880-9314 ext 273
>
>
>HERE IS MY PORTION OF THE PQACT.CONF FILE RELEVANT TO THIS E-MAIL ----
>
>
>#
># NOAAPORT GINI Images in NIMAGE feed
>NIMAGE      
>^satz/ch[0-9]/.*/(.*)/([12][0-9])([0-9][0-9])([01][0-9])([0-3][0-9]) 
>([0-2][0-9])([0-5][0-9])/(.*)/(.*km)/
>      FILE  -close      
>/usr1/nawips/metdat/images/sat/\8/\9/\1/\1_\2\3\4\5_\6\7
>##############################################################################
># NOAAPORT GINI Images in NIMAGE feed
>NIMAGE      
>^satz/ch[0-9]/.*/IR/([12][0-9])([0-9][0-9])([01][0-9])([0-3][0-9]) 
>([0-2][0-9])([0-5][0-9])/EAST-CONUS/4km)/
>      EXEC  /home/gempak/ir_sat.csh
>##############################################################################
> ###
>##############################################################################
> ##
># NOAAPORT GINI Images in NIMAGE feed
>NIMAGE      
>^satz/ch[0-9]/.*/VIS/([12][0-9])([0-9][0-9])([01][0-9])([0-3][0-9]) 
>([0-2][0-9])([0-5][0-9])/EAST-CONUS/1km)/
>      EXEC  /home/gempak/vis_sat.csh
>##############################################################################
> ###
>
>
>This part of the pqact.conf  file showed how to make gifs from the NIDS 
>data. I did not have a script called NEXRAD_gif.csh but I made one up. 
>It still didn't run for me.....so I must be doing something wrong somewhere.
>
>
># make some nids gifs
>NEXRAD      SDUS5. .... 
>([0-3][0-9])([0-2][0-9])([0-6][0-9]).*/p(N0[RV])(LSX)
>      EXEC  /home/gempak/NEXRAD_gif.csh \5 \4 (\1:yyyy)(\1:mm)\1_\2\3
>#
>
>
>
> 
>
>--------------070306000904040800010207
>Content-Type: text/plain;
> name="ir_sat.csh"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline;
> filename="ir_sat.csh"
>
>#! /bin/csh -x
>#########################################################################
>#
>#  Creates SFCOA Surface Plots for Webpage 
>#
>#  Kevin Lee Polston
>#  address@hidden
>#
>#  modified 15 September 2005
>#########################################################################
>
>
> set mm = `date -u +%m`
> set yy = `date -u +%Y`
> set dd = `date -u +%d`
> set hh = `date -u +%H`
>
>
>rm /usr1/nawips/metdat/gif/satellite/ir/*.gif
>
>#cd /usr1/nawips/gempak/tables/colors/
>#cp coltbl.xwp_white coltbl.xwp
>
>cd $SAT/EAST-CONUS/4km/IR/
>
>set SATFILE=(`ls -1  |tail -1`)
>set TIME=(`ls -1 |tail -1 |cut -c4-16`)
>set SAT_GIF_PATH=/usr1/nawips/metdat/gif/satellite/ir/
>#set TIME = ${yy}${mm}${dd}${HH}
>#set GAREA = /home/gempak/area
>
>
>set WORKDIR=/home/gempak/tmp/gemwrk.$$
>mkdir $WORKDIR
>cd $WORKDIR
>
>
>
>gpmap << EOF
>satfil = $SAT/EAST-CONUS/4km/IR/${SATFILE}
>garea = tpa-
>map = 19
>latlon = 0
>lutfil = $GEMTBL/luts/m58.tbl
>watch = last|4|yes
>mscale = 
>panel = 
>proj = sat 
>text = 1
>title = 6/-2/ ${TIME} 4KM IR SATELLITE IMAGE
>clear = yes
>DEVICE = gif|${SAT_GIF_PATH}4km_ir.gif |1024;768
>run
>
>
>warn = last
>device = gif|${SAT_GIF_PATH}warn.gif |1024;768
>run
>
>EOF
>
>
>
>
>ftp -i kev54.kcnet.com << EOF1
>cd /kev54.kcnet.com/weather/sfcoa
>bin
>lcd /usr1/nawips/metdat/gif/satellite/ir/
>mput *.gif
>
>
>e
>EOF1
>
>
>#
># Run gpend to close the metafile
>#
>
>gpend
>
>#cd /usr1/nawips/gempak/tables/colors/
>#cp coltbl.xwp_black coltbl.xwp
>
>
>cd $WORKDIR
>rm -rf $WORKDIR
>
>--------------070306000904040800010207
>Content-Type: text/plain;
> name="vis_sat.csh"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline;
> filename="vis_sat.csh"
>
>#! /bin/csh -x
>#########################################################################
>#
>#  Creates SFCOA Surface Plots for Webpage 
>#
>#  Kevin Lee Polston
>#  address@hidden
>#
>#  modified 15 September 2005
>#########################################################################
>
>
> set mm = `date -u +%m`
> set yy = `date -u +%Y`
> set dd = `date -u +%d`
> set hh = `date -u +%H`
>
>
>rm /usr1/nawips/metdat/gif/satellite/vis/*.gif
>
>#cd /usr1/nawips/gempak/tables/colors/
>#cp coltbl.xwp_white coltbl.xwp
>
>cd $SAT/EAST-CONUS/1km/VIS/
>
>set SATFILE=(`ls -1  |tail -1`)
>set TIME=(`ls -1 |tail -1 |cut -c5-17`)
>set SAT_GIF_PATH=/usr1/nawips/metdat/gif/satellite/vis/
>#set TIME = ${yy}${mm}${dd}${HH}
>#set GAREA = /home/gempak/area
>
>
>set WORKDIR=/home/gempak/tmp/gemwrk.$$
>mkdir $WORKDIR
>cd $WORKDIR
>
>
>
>gpmap << EOF
>satfil = $SAT/EAST-CONUS/1km/VIS/${SATFILE}
>garea = oma-
>map = 10
>latlon = 0
>lutfil = 
>watch = last|4|yes
>mscale = 
>panel = 
>proj = sat 
>text = 1
>title = 2/-2/ ${TIME} 1KM VISIBLE SATELLITE IMAGE
>clear = yes
>DEVICE = gif|${SAT_GIF_PATH}1km_vis.gif |1024;768
>run
>
>
>warn = last
>device = gif|${SAT_GIF_PATH}warn.gif |1024;768
>run
>
>EOF
>
>
>
>
>ftp -i kev54.kcnet.com << EOF1
>cd /kev54.kcnet.com/weather/sfcoa
>bin
>lcd /usr1/nawips/metdat/gif/satellite/vis/
>mput *.gif
>
>
>e
>EOF1
>
>
>#
># Run gpend to close the metafile
>#
>
>gpend
>
>#cd /usr1/nawips/gempak/tables/colors/
>#cp coltbl.xwp_black coltbl.xwp
>
>
>cd $WORKDIR
>rm -rf $WORKDIR
>
>--------------070306000904040800010207
>Content-Type: text/x-vcard; charset=utf-8;
> name="Kevin.Polston.vcf"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: attachment;
> filename="Kevin.Polston.vcf"
>
>begin:vcard
>fn:Kevin Polston
>n:Polston;Kevin
>org:NWSTC;Management & Meteorology
>adr:;;7220 NW 101st Terrace;Kansas City;MO;64153;USA
>email;internet:address@hidden
>title:Senior Instructor
>tel;work:816-880-9594 ext 273
>tel;fax:816-880-0377
>x-mozilla-html:TRUE
>url:http://www.nwstc.noaa.gov
>version:2.1
>end:vcard
>
>
>--------------070306000904040800010207--
>
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.