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.
> Steve, > > Is there a way to generate ensemble "spaghetti" diagrams from gempak. I > looked at the ens_ functions, but can't seem to find anything relevant. > > Thanks, > > Greg > Greg, To draw spaghetti diagrams, you want to display the individual members. I provide an wxample for nmap2 in $NMAP_RESTORE//modl/ensemble/sfc_pres_members In that example, it is using the gefs:NN members which are stored in files gepNN_YYYYMMDDHH...etc. as defined in the datatype.tbl template for GEFS. If you have more than the 14 members which that example plots in GDPLOT2 with a single drawing command as: GDFILE = gefs:01!gefs:02!gefs:03!gefs:04!gefs:05!gefs:06!gefs:07!gefs:08!gefs:09!gefs:10!gefs:11!gefs:12!gefs:13!gefs:14 LINE = 30/1/2!29!28!27!26!25!24!23!22!21!20!19!18!17 You would start running in to line length problems, as well a a general pain to maintain when new ensemble members are added (we currently get 20 from NCEP). The best way to draw these to a gif in a script would be to set a counter starting at 1, and set the initial color to 10 for example, and then draw the gefs:NN with he line color set, then advance the counter and color and draw the next member such as in /bin/csh: @ MEMBER=1 @ COLOR = 30 set CLEAR="yes" while ( $MEMBER <= 20 ) if ( $MEMBER < 10 ) then set GDFILE=gefs:0${MEMBER} else set GDFILE=gefs:${MEMBER} endif gdplot2<<EOF ! set some general common parameter values restore gfs_spaghetti ! set loop specific values gdfile = ${GDFILE} line = ${COLOR}/1/2 clear = $CLEAR run exit EOF @ MEMBER = $MEMBER + 1 @ COLOR = $COLOR - 1 set CLEAR="no" end gpend Steve Chiswell Unidata User Support > Unidata GEMPAK Support wrote: > >> Steve, > >> > >> Sorry about that. I have tried so many things to get this to work. Here > >> are the errors based on changes to the csh script: > >> > >> using gdplot with gpend I got these errors: > >> > >> [GEMPLT -101] NOPROC - Nonexistent executable. > >> Error in message send = 22 itype, ichan, nwords,0,-1,3 > >> msgget: Permission denied. > >> semget: Permission denied. > >> > >> > > > > > > Greg, > > > > This means that gplt is failing to execute the "gf" driver, > > for the same reason that you can't exec gdplot_gf below. > > > > > > > > > > > >> using gdplot_gf without gpend I got these errors: > >> > >> error while loading shared libraries: libX11.so.6: cannot open shared > >> object file: No such file or directory > >> > >> but I checked and that file (libX11.so.6) does exist. > >> > > > > If it exists, which likely you know because the programs run > > interactively, then it means that you have to set the LD_LIBRARY_PATH > > environmental variable in your script. You can verify that all > > shareable libraries are being resolved through the "ldd progname" command > > and then make sure your script has the same directories in its > > LD_LIBRARY_PATH > > > > > > Steve Chiswell > > Unidata User Support > > > > > > > >> I have included my Common.cshrc and my Nawips.cshrc which are both > >> sourced prior to executing the gdplot. > >> > >> Thanks for your help, > >> > >> Greg > >> > >> Unidata GEMPAK Support wrote: > >> > >>>> Steve, > >>>> > >>>> I found the logs files and here is the error I am getting: > >>>> > >>>> [GEMPLT -101] NOPROC - Nonexistent executable. > >>>> Error in message send = 22 itype, ichan, nwords,0,-1,3 > >>>> msgget: Permission denied. > >>>> semget: Permission denied. > >>>> > >>>> > >>> Greg, > >>> > >>> If you are using the _gf version of a program, it shouldn't be trying to > >>> exec gplt, or a device driver. > >>> > >>> Using gdplot2_gf with DEVICE=gf|outfile.gif|xsize;ysize eliminates all > >>> instances of using gplt, and therefore you also don't have to run gpend > >>> (which your script that you sent doesn't). The possibilities that come to > >>> my mind > >>> not having see your Common.cshrc that you are sourcing is executing > >>> something, or > >>> you aren't executing the same csh that you sent me. > >>> > >>> Steve Chiswell > >>> Unidata User Support > >>> > >>> > >>> > >>> > >>>> Ideas? > >>>> > >>>> Greg > >>>> > >>>> Unidata GEMPAK Support wrote: > >>>> > >>>> > >>>>>> Steve, > >>>>>> > >>>>>> I am running Xvfb and do have the DISPLAY variable set in the csh > >>>>>> gempak > >>>>>> script. When I execute the php script through the browser, it acts as > >>>>>> though the gempak program is not even called as the feedback from the > >>>>>> server is almost instantaneous. I have included the simple php and csh > >>>>>> scripts for you to take a look at. > >>>>>> > >>>>>> Any other ideas, or do you know someone doing this I may be able to > >>>>>> contact? > >>>>>> > >>>>>> Thanks, > >>>>>> > >>>>>> Greg > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> Greg, > >>>>> > >>>>> I didn't find your PHP, but did see your csh. > >>>>> In general, the web server is going to run as www, web or nobody user > >>>>> id, and so > >>>>> will not be the same user as you are when you run the script > >>>>> interactively. > >>>>> Your should also be careful that your Common.cshrc does not contain > >>>>> anything that > >>>>> is dependent of the interactive session. Also be aware that you should > >>>>> migrate > >>>>> any use of gdplot to gdplot2 since 5.11.1 will be the last release > >>>>> to support gdplot, gdwind, gdstream and gdmap and gdcntr. > >>>>> > >>>>> Note that you specified DEVICE = gif|/tmp/test.gif.... even though this > >>>>> is a gdplot2_gf program. Nominally the device will be gf but that > >>>>> shouldn't be > >>>>> an issue. However, you should have your script cd to a working directory > >>>>> where it will have priviledge to write its .nts files etc such as > >>>>> cd /tmp/.web_work so you can create your test.gif in that directory. > >>>>> I typically use a unique directory and outout file name using $$ in csh > >>>>> so that I don't get multiple invocations stepping on themselves. You > >>>>> also > >>>>> want to make sure that you haven't created a /tmp/test.gif as yourself > >>>>> when testing that the > >>>>> nobody web user can't overwrite. > >>>>> > >>>>> You can look at your web logs to see if there is an > >>>>> error_logindication. Otherwise, > >>>>> I'd redirect the gdplot2_gf output to a log file for debugging. > >>>>> > >>>>> Steve Chiswell > >>>>> Unidata User Support > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>> Unidata GEMPAK Support wrote: > >>>>>> > >>>>>> > >>>>>> > >>>>>>>> Steve, > >>>>>>>> > >>>>>>>> One more question. I have been playing around with trying to build a > >>>>>>>> web > >>>>>>>> interface to my ensemble members using php. The php script calls a > >>>>>>>> csh > >>>>>>>> script that sources the Common.cshrc, then generates the gif images > >>>>>>>> from gdplot_gf based on user selections. When I run the php script > >>>>>>>> from > >>>>>>>> the command line, everything works fine and the image is generated. > >>>>>>>> When > >>>>>>>> I try it through the web browser, the image is not generated. > >>>>>>>> > >>>>>>>> Do you have any ideas what may be going on? Also, if you have > >>>>>>>> experience > >>>>>>>> with this, could you send me a snippet of code as an example on how > >>>>>>>> to > >>>>>>>> do this correctly? > >>>>>>>> > >>>>>>>> Thanks, > >>>>>>>> > >>>>>>>> Greg > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>> Greg, > >>>>>>> > >>>>>>> I don't supply a Common.cshrc with my distribution, but rather have > >>>>>>> sites source a Gemenviron > >>>>>>> file. > >>>>>>> > >>>>>>> At any rate, the gf device driver required an X server to connect to. > >>>>>>> When you run interactively, you > >>>>>>> generally have a DISPLAY variable set for you in your environment, as > >>>>>>> well as some X magic cookies > >>>>>>> for authentication. > >>>>>>> > >>>>>>> When you run from cron, or as a web user, you have to either: > >>>>>>> 1) Use the gif device driver which does not require an X server to > >>>>>>> talk to > >>>>>>> or, > >>>>>>> 2) Provide a virtual X server, which is typically what I do using the > >>>>>>> Xvfb virtual frame > >>>>>>> buffer program. This gives me a host that has a virtual screen in > >>>>>>> memory that all my hosts > >>>>>>> can draw to (I use a host:1.0 screen connection). This DISPLAY must > >>>>>>> be defined in the environmental > >>>>>>> variable in your script as well. > >>>>>>> > >>>>>>> Steve Chiswell > >>>>>>> Unidata User SUpport > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>>> Unidata GEMPAK Support wrote: > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>>>> Steve, > >>>>>>>>>> > >>>>>>>>>> I have started using the ens_ functions and they work really well. > >>>>>>>>>> I am > >>>>>>>>>> having a problem though. When I run gdplot or gdcntr with the ens_ > >>>>>>>>>> functions manually to create a gif image, it works fine. But when > >>>>>>>>>> I run > >>>>>>>>>> those applications within a csh script, I do not get a gif image or > >>>>>>>>>> anything...not even any error messages when I look at the log > >>>>>>>>>> file. I am > >>>>>>>>>> trying to look at the ens_savg(tmpf@2%hght) with my local wrf runs > >>>>>>>>>> with > >>>>>>>>>> up to 7 members. > >>>>>>>>>> > >>>>>>>>>> Any ideas? > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>> Greg, > >>>>>>>>> > >>>>>>>>> When you run a script, or interactively to create output to a file, > >>>>>>>>> you have to make sure you are running "gpend" > >>>>>>>>> so that the device driver knows when you are finished adding > >>>>>>>>> information to the plot window and write the output file. > >>>>>>>>> Until you run gpend, you can still run other programs and create > >>>>>>>>> overlays etc. > >>>>>>>>> > >>>>>>>>> If you are using the GF device driver, you also have to ensure that > >>>>>>>>> your script can connect to an X server just > >>>>>>>>> like your XW. If you are using the GIF device driver, then you do > >>>>>>>>> not need an X server. > >>>>>>>>> > >>>>>>>>> Steve Chiswell > >>>>>>>>> Unidata User Support > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>> Greg > >>>>>>>>>> > >>>>>>>>>> Unidata GEMPAK Support wrote: > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>>> Greg, > >>>>>>>>>>> > >>>>>>>>>>> The ENS_ functions available in current GEMPAK releases allow you > >>>>>>>>>>> to > >>>>>>>>>>> use individual input files to create an ensemble by enclosing > >>>>>>>>>>> the list of files in the curly braces eg "{file1; file2; > >>>>>>>>>>> ...fileN}" in GDFILE. > >>>>>>>>>>> Use ENS_SAVG() to create a mean, as describe in the "phelp gfunc" > >>>>>>>>>>> help documentation for the ENS_ functions. > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> I have the start of a web page showing some ensemble computations > >>>>>>>>>>> at: > >>>>>>>>>>> http://www.unidata.ucar.edu/software/gempak/examples/ensembles/ > >>>>>>>>>>> > >>>>>>>>>>> The examples on the web page use the GEFS ensemble members, > >>>>>>>>>>> rather than > >>>>>>>>>>> a list of individual modelnames in the "{}", but you > >>>>>>>>>>> might find some examples useful. > >>>>>>>>>>> > >>>>>>>>>>> Steve Chiswell > >>>>>>>>>>> Unidata User Support > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>>> Back in June I attended the COMAP symposium at UCAR in Boulder. > >>>>>>>>>>>> While > >>>>>>>>>>>> there, I was told that it is possible to create an ensemble of > >>>>>>>>>>>> my local > >>>>>>>>>>>> WRF model runs using GEMPAK. If this indeed true, what gempak > >>>>>>>>>>>> programs > >>>>>>>>>>>> would I need to use to create an ensemble mean from my various > >>>>>>>>>>>> members? > >>>>>>>>>>>> > >>>>>>>>>>>> Thanks, > >>>>>>>>>>>> > >>>>>>>>>>>> Greg > >>>>>>>>>>>> > >>>>>>>>>>>> -- > >>>>>>>>>>>> Greg Garrett > >>>>>>>>>>>> Science and Operations Officer > >>>>>>>>>>>> National Weather Service > >>>>>>>>>>>> Jackson MS > >>>>>>>>>>>> 601.939.2786 > >>>>>>>>>>>> address@hidden > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>> Ticket Details > >>>>>>>>>>> =================== > >>>>>>>>>>> Ticket ID: VWZ-136850 > >>>>>>>>>>> Department: Support GEMPAK > >>>>>>>>>>> Priority: Normal > >>>>>>>>>>> Status: Closed > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>> -- > >>>>>>>>>> Greg Garrett > >>>>>>>>>> Science and Operations Officer > >>>>>>>>>> National Weather Service > >>>>>>>>>> Jackson MS > >>>>>>>>>> 601.939.2786 > >>>>>>>>>> address@hidden > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>> Ticket Details > >>>>>>>>> =================== > >>>>>>>>> Ticket ID: VWZ-136850 > >>>>>>>>> Department: Support GEMPAK > >>>>>>>>> Priority: Normal > >>>>>>>>> Status: Closed > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>> -- > >>>>>>>> Greg Garrett > >>>>>>>> Science and Operations Officer > >>>>>>>> National Weather Service > >>>>>>>> Jackson MS > >>>>>>>> 601.939.2786 > >>>>>>>> address@hidden > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>> Ticket Details > >>>>>>> =================== > >>>>>>> Ticket ID: VWZ-136850 > >>>>>>> Department: Support GEMPAK > >>>>>>> Priority: Normal > >>>>>>> Status: Closed > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> -- > >>>>>> Greg Garrett > >>>>>> Science and Operations Officer > >>>>>> National Weather Service > >>>>>> Jackson MS > >>>>>> 601.939.2786 > >>>>>> address@hidden > >>>>>> > >>>>>> > >>>>>> #!/bin/csh -x > >>>>>> > >>>>>> source /data/nawips/Common.cshrc > >>>>>> > >>>>>> setenv DISPLAY wrf-jan:1 > >>>>>> > >>>>>> gdplot_gf << EOF > >>>>>> GDFILE = /data/nawips/gempak/data/grids/2007091212_wrf_d02_04.gem > >>>>>> GDATTIM = f03 > >>>>>> GLEVEL = 2 > >>>>>> GVCORD = hght > >>>>>> PANEL = 0 > >>>>>> SKIP = 0 > >>>>>> SCALE = 0 > >>>>>> GFUNC = tmpf@2%hght > >>>>>> CTYPE = c/f > >>>>>> CONTUR = 7/4 > >>>>>> CINT = 2 > >>>>>> LINE = 3//2 > >>>>>> FINT = 2 > >>>>>> FLINE = 5-30 > >>>>>> HILO = > >>>>>> HLSYM = > >>>>>> CLRBAR = 1 > >>>>>> GVECT = > >>>>>> WIND = > >>>>>> REFVEC = > >>>>>> TITLE = 6/-2/~ test > >>>>>> TEXT = 1/33//hw > >>>>>> CLEAR = y > >>>>>> GAREA = DSET > >>>>>> IJSKIP = > >>>>>> PROJ = > >>>>>> MAP = 1 > >>>>>> MSCALE = 0 > >>>>>> LATLON = > >>>>>> DEVICE = gif|/tmp/test.gif|960;720 > >>>>>> STNPLT = 5/1||localcities.tbl > >>>>>> r > >>>>>> > >>>>>> ex > >>>>>> EOF > >>>>>> > >>>>>> exit > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> Ticket Details > >>>>> =================== > >>>>> Ticket ID: VWZ-136850 > >>>>> Department: Support GEMPAK > >>>>> Priority: Normal > >>>>> Status: Closed > >>>>> > >>>>> > >>>>> > >>>>> > >>>> -- > >>>> Greg Garrett > >>>> Science and Operations Officer > >>>> National Weather Service > >>>> Jackson MS > >>>> 601.939.2786 > >>>> address@hidden > >>>> > >>>> > >>>> > >>>> > >>>> > >>> Ticket Details > >>> =================== > >>> Ticket ID: VWZ-136850 > >>> Department: Support GEMPAK > >>> Priority: Normal > >>> Status: Closed > >>> > >>> > >>> > >> -- > >> Greg Garrett > >> Science and Operations Officer > >> National Weather Service > >> Jackson MS > >> 601.939.2786 > >> address@hidden > >> > >> > >> # Gemenviron file for GEMPAK 5.8 > >> # > >> # Sets environment variables used in running GEMPAK > >> # UNIDATA Program Center 6/1/92 (PB) > >> # Revised 8/31/94 for GEMPAK 5.2 > >> # Modified 12/95 for Gempak5.2.1/Nawips (Chiz) > >> # Modified 8/96 for Gempak5.4/NAWIPS (Chiz) > >> # Modified 10/00 for Gempak5.6/NAWIPS (Chiz) > >> # Modified 3/04 for Gempak5.7/NAWIPS (Chiz) > >> # Renamed to NAWIPS.cshrc for use in the NWS (Roz) > >> #--------------------------------------------------------------------- > >> # The command > >> # source Gemenviron > >> # > >> # or the individual lines below, must be included in your .login or > >> # .cshrc file! > >> #--------------------------------------------------------------------- > >> # <<CONFIGURE>> > >> # To build GEMPAK on your system, you should set the NAWIPS variable > >> # below to the top level of the source distribution tree on your system. > >> # > >> # Please configure the following definitions to reflect your system: > >> # > >> # Top level directory: > >> if (! $?NAWIPS) then > >> echo > >> echo "ERROR: NAWIPS environment variable is not defined." > >> exit > >> endif > >> > >> if (! $?METDAT) then > >> setenv GEMDATA $NAWIPS/gempak/data > >> else > >> setenv GEMDATA $METDAT/gempak > >> endif > >> #" > >> # Path for Garp tables and configuration. You should only have to > >> # modify GARP_PATH if you have unique Garp_defaults for specifc > >> # data sets, such as case studies. In those cases, creating > >> # a ntl.case startup script which sets those local environmental variables > >> # is generally the best solution. > >> # > >> setenv GARPHOME $NAWIPS/comet/garp > >> setenv GARP_PATH $GARPHOME/config > >> # > >> # Uncomment the following lines for using GCC compilers (Solaris/HP only) > >> # set USEGCC_SOL=1 > >> # set USEGCC_HPUX=1 > >> # > >> # -------------------------------------------------------------------- > >> # Make sure NAWIPS directory exists > >> # > >> if ( ! -d $NAWIPS ) then > >> echo "Can not find NAWIPS distribution." > >> echo 'Check Gemenviron NAWIPS definition ->' $NAWIPS > >> unsetenv NAWIPS > >> exit > >> endif > >> > >> #try to determine operating system: command uname must be in path > >> # > >> if($?NA_OS == 0) then > >> set TMP_OS=`uname -s | tr '[A-Z]' '[a-z]'` > >> switch ($TMP_OS) > >> case "aix": > >> setenv NA_OS "aix" > >> setenv OS_MAJOR `uname -v` > >> if ( $OS_MAJOR == 5 ) then > >> setenv AIX_NO_GEMPAK_SCANDIR 1 > >> endif > >> breaksw > >> case hp-ux: > >> set OS_MAJOR=`uname -r | cut -f1,2 -d.` > >> if($OS_MAJOR == 'B.11') then > >> setenv XCFLAGS "-DSYSLOG_RETURNS_INT" > >> endif > >> if ( $?USEGCC_HPUX ) then > >> setenv NA_OS "hpux_gcc" > >> else > >> setenv NA_OS "hpux" > >> endif > >> breaksw > >> case irix64: > >> #setenv XCFLAGS "-o32" > >> case irix: > >> setenv NA_OS "irix" > >> breaksw > >> case osf1: > >> setenv NA_OS "osf" > >> uac p noprint # supress warnings in xw driver for unaligned access > >> breaksw > >> case sunos: > >> set OS_MAJOR=`uname -r | sed 's/\..*//'` > >> set HARDWARE=`uname -i | tr '[A-Z]' '[a-z]'` > >> setenv NA_OS "sunos" > >> if(($OS_MAJOR == 5)&&($?USEGCC_SOL)) then > >> setenv NA_OS "sol_gcc" > >> else > >> setenv NA_OS "sol" > >> endif > >> if(($NA_OS == 'sol')&&($HARDWARE == 'i86pc')) then > >> setenv NA_OS "x86" > >> endif > >> breaksw > >> case ultrix: > >> setenv NA_OS "ultrix" > >> breaksw > >> case linux: > >> setenv NA_OS "linux" > >> breaksw > >> case freebsd: > >> setenv NA_OS "freebsd" > >> breaksw > >> case darwin: > >> setenv NA_OS "darwin" > >> breaksw > >> case cygwin: > >> setenv NA_OS "cygwin" > >> breaksw > >> case default: > >> echo "trouble determining operating system configuration" > >> echo "OS reported $TMP_OS" > >> exit > >> endsw > >> endif > >> > >> # -------------------------------------------------------------------- > >> # > >> # GEMPAK directory: > >> # > >> setenv GEMPAK $NAWIPS/gempak > >> setenv GEMPAKHOME $NAWIPS/gempak > >> # > >> # CONFIGURATION directory > >> setenv CONFIGDIR $NAWIPS/config > >> # > >> # Directory for storing object libraries (GEMPAK + related software): > >> # > >> setenv GEMLIB $NAWIPS/os/${NA_OS}/lib > >> # > >> # Directory for executables (GEMPAK + related software): > >> # > >> setenv GEMEXE $NAWIPS/os/${NA_OS}/bin > >> # > >> # Remaining directories used by GEMPAK (leave as is): > >> # > >> setenv GEMPDF $GEMPAK/pdf > >> setenv GEMTBL $GEMPAK/tables > >> setenv GEMERR $GEMPAK/error > >> setenv GEMHLP $GEMPAK/help > >> setenv GEMMAPS $GEMPAK/maps > >> setenv GEMNTS $GEMPAK/nts > >> setenv GEMPARM $GEMPAK/parm > >> setenv GEMPTXT $GEMPAK/txt/programs > >> setenv GEMGTXT $GEMPAK/txt/gemlib > >> setenv NMAP_RESTORE $GEMNTS/nmap/restore > >> # > >> # MEL_BUFR environment > >> setenv MEL_BUFR $NAWIPS/extlibs/melBUFR/melbufr > >> setenv MEL_BUFR_TABLES $GEMPAK/tables/melbufr > >> # > >> # > >> # Add NAWIPS to the X applications resource path. > >> # > >> set xresources="" > >> > >> if ( -d $NAWIPS/resource ) then > >> set xresources="$NAWIPS/resource/%N" > >> if ( $?XUSERFILESEARCHPATH ) then > >> setenv XUSERFILESEARCHPATH ${xresources}:${XUSERFILESEARCHPATH} > >> else > >> setenv XUSERFILESEARCHPATH $xresources > >> endif > >> endif > >> > >> # > >> # > >> # Set PATH to include $GEMEXE > >> # > >> setenv PATH ${PATH}:${GEMEXE}:${NAWIPS}/bin > >> > >> # > >> # -------------------------------------------------------------------- > >> # <<CONFIGURE>> > >> # Data directories, either real time or the Hurricane Bob sample data set: > >> # > >> # setenv GEMDATA $GEMPAK/data > >> setenv OBS $GEMDATA > >> # > >> # Location of meta files (generated with NC decide driver) > >> setenv NTRANS_META $GEMDATA/meta > >> # > >> # Location of text bulletins for use with NWX > >> setenv TEXT_DATA $GEMDATA/nwx > >> # > >> # Used by Nalarm (path component /nawips is added automatically by > >> program). > >> # Write products into $GEMDATA/alarms/nawips for display. > >> setenv AFOS_ALARMS $GEMDATA/alarms/ > >> # > >> # Location of SAT directory tree "Required!!"...must exist > >> # > >> setenv SAT $GEMDATA/images/sat > >> setenv RAD $GEMDATA/nexrad > >> # > >> # > >> # Below follow variables for data locations (site specific) > >> # Not required for NAWIPS, but may be used in scripts etc. > >> # > >> setenv LDMDATA /data/ldm > >> setenv GOES8 $SAT/GOES-8 > >> setenv GOES9 $SAT/GOES-9 > >> setenv MODEL $GEMDATA/model > >> # > >> # note HDS is mainted for historical reasons.... > >> setenv HDS $MODEL > >> setenv MODEL_SND $GEMDATA/modsnd/gempak/bufr/model > >> setenv MODEL_SFC $GEMDATA/modsnd/gempak/bufr/model > >> setenv SAO $GEMDATA/surface > >> setenv UPA $GEMDATA/upperair > >> setenv RAW_SAO $LDMDATA/surface/sao > >> setenv RAW_SYN $LDMDATA/surface/syn > >> setenv RAW_UPA $LDMDATA/upperair > >> setenv NLDN $GEMDATA/nldn > >> > >> setenv TORN_WARN $TEXT_DATA/watch_warn/TOR > >> setenv TSTRM_WARN $TEXT_DATA/watch_warn/SVR > >> setenv TEXT_WARN $TEXT_DATA/watch_warn > >> > >> setenv RBKGPH $GEMDATA/redbook > >> setenv SPDATA $GEMDATA > >> > >> setenv WS_ETA_GEM /scratch/chiz/wseta/worketa/gempak > >> > >> > >> > >> if($?HOME) then > >> setenv GRPHGD $HOME > >> else > >> setenv GRPHGD $GEMPAK > >> endif > >> # > >> # Print command and flags for systems > >> setenv LP "lp -c" > >> setenv LPFLAG "-d" > >> > >> > >> #!/bin/csh -f > >> #------------------------------------------------------- > >> # > >> # cshrc file for Common usage > >> # > >> # Please read all the comments below and when requested, > >> # make changes to reflect your system set-up. > >> # > >> # Log > >> # P.Bruehl/NWS 4/97 Updated to support Linux > >> # R.Rozumalski 1/00 Added Workstation Eta support > >> # R.Rozumalski 1/06 REmoved HPUX support > >> #------------------------------------------------------- > >> # > >> # Set file permission mask (-rwxr-x-r-x) > >> # > >> umask 022 > >> # > >> # Define system type. > >> # > >> setenv OS `/bin/uname -s` > >> # > >> # Set the DISPLAY variable if it isn't set > >> # > >> setenv HOMEHOST "" > >> # > >> # Define the location of the NAWIPS, WS ETA, and RTDATA > >> # distributions. Note that this has changes from previous > >> # versions of the Common.cshrc file. > >> # > >> > >> setenv NAWIPS /var/www/html/nawips > >> setenv METDAT $NAWIPS/gempak/data > >> setenv RTDATA $NAWIPS/gribmaster2.1 > >> setenv WS_ETA /usr1/worketa > >> setenv WRF /data/wrf > >> > >> set comp_path = () > >> > >> setenv ARCH linux > >> setenv NA_OS linux > >> setenv ETA_OS linux > >> setenv MANPATH > >> "/usr/man:/usr/local/share/man:/usr/local/man:/usr/contrib/man" > >> > >> # > >> # Set up a default search path. > >> # You may add directories here, but note that order is important. > >> # Also, if you plan of using your compilers it is important that you > >> # add them you the path below. For HPUX users this will likely be > >> # /opt/ansic/bin, /opt/fortran90/bin, and /opt/fortran/bin . For > >> # LINUX users you will either use /usr/absoft/bin or $PGI/linux86/bin > >> # depending on the compiler. Also you will have to set the $PGI or > >> # $ABSOFT environmental vaiables somewhere above. By default these > >> # are: > >> > >> > >> set path = ( /var/www/html /bin /usr/bin /usr/local/bin /usr/bin/X11 \ > >> /usr/local/X11/bin /bin /sbin /usr/sbin /usr/bin /usr/X11R6/lib/ > >> /usr/X11R6/lib64/ ) > >> #set path = ( . $comp_path ~/bin /usr/bin /usr/local/bin /usr/bin/X11 \ > >> # /usr/local/X11/bin /bin /sbin /usr/sbin /usr/bin ) > >> > >> # > >> # Source GEMPAK/NAWIPS applications. > >> # > >> if ( -e $NAWIPS/Nawips.cshrc ) source $NAWIPS/Nawips.cshrc > >> > >> # > >> # Source Workstation ETA applications. > >> # > >> #if ( -e $WS_ETA/ETA.cshrc ) source $WS_ETA/ETA.cshrc > >> > >> # > >> # X-Windows application resource search path > >> # > >> if ($?xresources) then > >> setenv XUSERFILESEARCHPATH \ > >> /var/www/html/.app-defaults/%N:${xresources}:/usr/local/lib/app-defaults/%N:/usr/X11R6/lib/:/usr/X11R6/lib64/ > >> unset xresources > >> else > >> setenv XUSERFILESEARCHPATH \ > >> /var/www/html/.app-defaults/%N:/usr/local/lib/app-defaults/%N:/usr/X11R6/lib/:/usr/X11R6/lib64/ > >> endif > >> > >> # Miscellaneous definitions > >> # > >> set filec > >> set cdpath = ( /var/www/html ) > >> set notify > >> set history = 200 savehist = 200 > >> #limit coredumpsize 0 > >> > >> # > >> # No need to change this > >> # > >> set TTY="`tty`" > >> if ($?0 || ! $?prompt) exit 0 > >> if ( "$TTY" == "not a tty" ) exit 0 > >> > >> # > >> # Set the DISPLAY to use fastest transport available if > >> # sitting at the console of the workstation. > >> # > >> if ( "$TTY" == "/dev/console" ) then > >> setenv DISPLAY :0.0 > >> endif > >> > >> # > >> # Make a failsafe setting for the DISPLAY variable if not > >> # a console log on. > >> # > >> if ( ! $?DISPLAY ) setenv DISPLAY ${HOMEHOST}:0.0 > >> > >> # > >> # Set prompt > >> # > >> set host=`hostname | cut -d"." -f1` > >> set prompt="`whoami`@${host}-> " > >> > >> > >> > >> > > > > > > Ticket Details > > =================== > > Ticket ID: VWZ-136850 > > Department: Support GEMPAK > > Priority: Normal > > Status: Closed > > > > > > -- > Greg Garrett > Science and Operations Officer > National Weather Service > Jackson MS > 601.939.2786 > address@hidden > > > Ticket Details =================== Ticket ID: VWZ-136850 Department: Support GEMPAK Priority: Normal Status: Closed