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.
Dan, Your plotting script calls /home/dan/test.csh which you haven't included, but I'm assuming its purpose is tread the radar data from stardard input of the script and write it out to the appropriate file. Otherwise, use EXEC instead of PIPE if the script isn't going to read the data from the PIPE. Since your process being invoked by the LDM probably isn't allowed to display to your X server, your DISPLAY to localhost:0 won't accept the gf driver connection unless your X server is logged in to, and have run xhost to allow connections from all users on your system. Solutions here are to use the "gif" device which does not require an X server, or createa virtual X server using Xvfb and use that as the display to draw to. Steve Chiswell Unidata User Support >From: Daniel Leins <address@hidden> >Organization: UCAR/Unidata >Keywords: 200501060700.j0670Fv2013454 >To whom, > >I would like to pipe 0.5 reflectivity data to a script to generate gif >images for a webpage. The script is identical enough to the script >provided on the unidata site as an example of how to generate gif images >for the web. I've gotten the script to work fine when I run it manually, >however when I try and use the PIPE option within my pqact.conf file, I >can't seem to get any images to generate upon receipt of the data. Do I >have this section of the pqact file set up correctly? `ldmadmin >pqactcheck` seems to think so. I've also tried to set up a log for >this section, and it doesn't want to work either. I've attached the >relevant portions of the pqact file, as well as the script for perusal. > >Note: The tabs show up correctly within the file > >NEXRAD ^SDUS[2357]. KEAX >([0-3][0-9])([0-2][0-9])([0-6][0-9]).*/p(N0R)(...) > PIPE -close /home/dan/nexradgif.csh > -d /home/dan/log.log > >I would like this program to run upon receipt of KEAX 0.5 reflectivity >data only. The script is a csh script, located in /home/dan. It's >chmod'd to 777 > >This is the script (which works fine manually) > >#!/bin/csh -f >setenv DISPLAY localhost:0 >source $NAWIPS/Gemenviron >set MAPFIL = $GEMMAPS/hicnus.nws > >/home/dan/test.csh >cd /data/ldm/NIDS/EAX/N0R >set CURRENT_RAD=`ls * | tail -1` > ># generate gifs in /tmp >cd /tmp > >if(-e eax.gif ) then > rm -f eax.gif* >endif > >foreach FILE ($CURRENT_RAD) > >gpmap << EOF >mapfil = /usr/local/gempak/gempak/maps/hicnus.nws+hipowo.cia >map= 2/1/1+5/1/2 >TITLE = 1/-2/ >DEVICE = gf|eax.gif.009|800;600 >SATFIL = >RADFIL = /data/ldm/NIDS/EAX/N0R/$FILE >PROJ = rad >GAREA = 37.29;-96.53;41.15;-91.38 >CLEAR = y >PANEL = 0 >TEXT = 1.2/23/1/hw >LATLON = 0 >\$mapfil = hipowo.gsf >r > >e >EOF > >gpend > >mv /tmp/eax.gif.009 /var/www/html/wx/radar >end > > >Any insight would be greatly appreciated! > >Thank you, >Dan Leins > > -- 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.