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.
Dave, Did you try setting your path as I mentioned? setenv PATH .:/usr/ccs/bin:/opt/SUNWspro/bin:/bin:/usr/bin I was wondering if your path was too long. Go ahead and type: printenv send me the output. Maybe I'll be able to tell at what point the source command is failing from what variables are set/missing. Steve Chiswell >From: Dave Levinson <address@hidden> >Organization: USDA-ARS NWRC >Keywords: 199902011734.KAA06035 >This is a multi-part message in MIME format. >--------------A5916DD293A7223A0449CAB0 >Content-Type: text/plain; charset=us-ascii >Content-Transfer-Encoding: 7bit > >Steve: > >I checked the shell I was using, but I always run csh by default, so >that wasn't the problem. I only changed the path for the setenv command >in Gemenviron: > >setenv NAWIPS /usr/local/src/NAWIPS > >my guess is this isn't the problem. So, I attached the script for >Gemenviron and maybe you can find the problem! I guess its possible >that my version is fouled up in some way. > >Thanks for your help with this! > >Dave. > > > >Unidata Support wrote: > >> >From: Dave Levinson <address@hidden> >> >Organization: USDA-ARS NWRC >> >Keywords: 199902011515.IAA02185 >> >> >Dear Unidata support: >> > >> >I have had several problems loading the nawips software onto my SUN >> >Ultra 10. The latest problem involves the Gemenviron script which is >> >"sourced" before compiling. On Friday we tried to source the >> Gemenviron >> >script, but kept getting the following message: >> > >> >>> source Gemenviron >> >Word too long >> > >> >I don't know what this means, and I've asked others here at our lab >> and >> >they were also stumped! If you could explain what could possibly >> cause >> >this and what we should do to correct/avoid this problem, I would >> >appreciate it. >> > >> >Thanks, >> > >> >Dave. >> > >> >-- >> >Dr. David Levinson, Meteorologist >> >Northwest Watershed Research Center >> >USDA-Agricultural Research Service >> >800 Park Blvd., Plaza IV, Suite 105 >> >Boise, Idaho 83712 >> >Ph (208) 422-0724, Fax (208) 334-1502 >> > >> > >> > >> >> Dave, >> >> Verify that you are running a csh when you source the Gemenviron >> script. >> Perhaps you have something strange with your shell or your path. >> Try setting a basic path prior to sourcing and building: >> >> setenv PATH .:/usr/ccs/bin:/opt/SUNWspro/bin:/bin:/usr/bin >> source Gemenviron >> >> if you still have trouble, verify that: >> echo $SHELL >> >> responds with /bin/csh and please send the contents of the Gemenviron >> script since its possible that upon editing it locally, it has gotten >> fouled. >> >> Steve Chiswell >> **************************************************************************** >> Unidata User Support UCAR Unidata >> (303)497-8644 P.O. >> address@hidden Boulder, CO >> ---------------------------------------------------------------------------- >> Unidata WWW Service >> **************************************************************************** >> >> >-- >Dr. David Levinson, Meteorologist >Northwest Watershed Research Center >USDA-Agricultural Research Service >800 Park Blvd., Plaza IV, Suite 105 >Boise, Idaho 83712 >Ph (208) 422-0724, Fax (208) 334-1502 > > > >--------------A5916DD293A7223A0449CAB0 >Content-Type: text/plain; charset=us-ascii; > name="Gemenviron" >Content-Transfer-Encoding: 7bit >Content-Disposition: inline; > filename="Gemenviron" > ># Gemenviron file for GEMPAK 5.2 ># ># 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) >#--------------------------------------------------------------------- ># The command ># source Gemenviron ># ># or the individual lines below, must be included in your .login or ># .cshrc file! >#--------------------------------------------------------------------- ># <<CONFIGURE>> ># Please configure the following definitions to reflect your system: ># ># Top level directory: > setenv NAWIPS /usr/local/src/NAWIPS > setenv GARPHOME $NAWIPS/garp > setenv GARP_PATH $GARPHOME/config ># ># -------------------------------------------------------------------- ># 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" > 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 > setenv NA_OS "hpux" > 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) then > 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 default: > echo "trouble determining operating system configuration" > echo "OS reported $TMP_OS" > exit > endsw >endif > ># -------------------------------------------------------------------- ># ># GEMPAK 5.4 directory: ># > setenv GEMPAKHOME $NAWIPS/gempak5.4 ># ># Directory for storing object libraries (GEMPAK + related software): ># > setenv GEMLIB $NAWIPS/lib/${NA_OS} ># ># Directory for executables (GEMPAK + related software): ># > setenv GEMEXE $NAWIPS/bin/${NA_OS} ># ># Remaining directories used by GEMPAK (leave as is): ># > setenv GEMPDF $GEMPAKHOME/pdf > setenv GEMTBL $GEMPAKHOME/tables > setenv GEMERR $GEMPAKHOME/error > setenv GEMHLP $GEMPAKHOME/help > setenv GEMMAPS $GEMPAKHOME/maps > setenv GEMNTS $GEMPAKHOME/nts ># ># NAWIPS specific directories ># > setenv NAWIPS_EXE $GEMEXE > setenv NAWIPS_LIB $GEMLIB > setenv NAWIPS_INC $NAWIPS/include > setenv NAWIPS_HELP $NAWIPS/help > setenv NAWIPS_TABLES $NAWIPS/tables > setenv NWX_TABLES $NAWIPS_TABLES/nwx ># ># If you are installing on DEC, and therefore must ># rebuild the maps, set GEMMAPS environment ># variable to: > if(($NA_OS == "osf")||($NA_OS == "ultrix")||($NA_OS == "linux")||($NA_OS == > "x86")) then > setenv GEMMAPS $GEMPAKHOME/maps/decmaps > echo "Setting to decmaps" > endif ># > setenv BRDGDIR $NAWIPS/unidata/ldmbridge ># ># 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 SCRIPTS_EXE $NAWIPS/bin/scripts >setenv PATH ${PATH}:${GEMEXE}:${SCRIPTS_EXE} > ># ># -------------------------------------------------------------------- ># <<CONFIGURE>> ># Data directories, either real time or the Hurricane Bob sample data set: ># ># setenv GEMDATA $GEMPAKHOME/data > setenv GEMDATA /var/data/ldm/gempak ># > setenv NTRANS_META $GEMDATA/meta > setenv TEXT_DATA $GEMDATA/nwx > setenv AFOS_BITMAPS $NAWIPS/nprogs/afos/bitmaps > setenv AFOS_DATA $NAWIPS/tmp > setenv AFOS_LOG $NAWIPS/tmp > setenv AFOS_BIN $NAWIPS/tmp > setenv AFOS_ALARMS $NAWIPS/tmp ># ># Location of NSAT directory tree "Required!!"...must exist ># > setenv SAT $GEMDATA/images/sat ># ># ># Below follow variables for data locations (site specific) ># Not required for NAWIPS, but may be used in scripts etc. ># > setenv LDMDATA /var/data/ldm > setenv GOES8 $SAT/GOES-8 > setenv GOES9 $SAT/GOES-9 > setenv HDS $GEMDATA/hds > 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 NIDS $GEMDATA/images/radar/nids/FTG > setenv NLDN $GEMDATA/nldn > > setenv ZONEMAPS $GEMPAKHOME/maps/bna > setenv TORN_WARN $TEXT_DATA/watch_warn/torn_warn > setenv TSTRM_WARN $TEXT_DATA/watch_warn/tstrm_warn > > > >--------------A5916DD293A7223A0449CAB0-- >