Re: Error from PATH setup

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed, 1 Aug 2007 22:37:58 -0600 (MDT)

remove the .test part

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"

This was from an old test ....

Where on the web did you find this?

D
On Wed, 1 Aug 2007, Erik Noble wrote:

> Oh... :-)
> The program worked when I commented out the load command:
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl.test"
>
>
> I borrowed the load commands from the examples on the web.
> Does this mean that "contributed.ncl.test" is not an important file?
>
> Again, thank you for the help.
> Sincerely,
> Erik
>
> On 8/1/07, Erik Noble <enoble_at_giss.nasa.gov> wrote:
> > Hi.
> > Thank you for pointing out this oversight :-)
> >
> > I corrected spellings and I did install NCL in the general /usr/local
> > directory on this Intel Mac Pro.
> >
> > I am still getting an error:
> >
> > enoble_at_progo:/Users/enoble/Split.ncl
> > Copyright (C) 1995-2007 - All Rights Reserved
> > University Corporation for Atmospheric Research
> > NCAR Command Language Version 4.3.1
> > The use of this software is governed by a License Agreement.
> > See http://www.ncl.ucar.edu/ for more details.
> > fatal:Could not open ($NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl.test)
> > fatal:error at line 4 in file Split.ncl
> >
> > My program is as follows:
> >
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl.test"
> >
> > begin
> > ;***********************************************
> > ;read in netcdf file
> > ;***********************************************
> > a=addfile("./hgt.2006.nc","r")
> > hgt=a->hgt
> > time=a->time
> >
> > ntimes=dimsizes(time)
> > split=dimsizes(time)/2
> >
> > hgt_1=hgt(0:split-1,:,:,:)
> > hgt_2=hgt(split:ntimes-1,:,:,:)
> >
> > ncdf_out_1=addfile("hgt.2006-1.nc","c")
> > ncdf_out_2=addfile("hgt.2006-2.nc","c")
> >
> > ncdf_out_1->hgt_1=hgt_1
> > ncdf_out_2->hgt_1=hgt_2
> > end
> >
> >
> > My .profile is as follows:
> >
> > export DISPLAY=:0.0
> > export NCARG_ROOT=/usr/local/
> > export PATH=$NCARG_ROOT/bin:$PATH
> > export MANPATH=$NCARG_ROOT/man:$MANPATH
> > export NETCDF=/usr/local/
> > export LD_LIBRARY_PATH=opt/intel/fc/10.0.017/lib
> > export JASPER=/usr/local/
> > ##alias ncl=/usr/local/ncl-3.4.0/bin/ncl
> > export https_proxy=10.116.34.1:80
> > PATH=$PATH:$HOME:/opt/local/bin:/opt/local/sbin:/opt/intel/fc/10.0.017/bin:/opt/intel/cc/10.0.018/bin:$NCARG_ROOT/bin:/usr/local/bin:/usr/local/rsi/idl_5.6/bin
> > export PATH
> >
> >
> > I am still confused but appreciate the help.
> > -Erik
> >
> > On 8/1/07, Dave Allured <dave.allured_at_noaa.gov> wrote:
> > > In addition to what Mary just said, you have the spelling error
> > > $NCAR_ROOT in at least two places below. It should be $NCARG_ROOT.
> > >
> > > --Dave
> > >
> > > Erik Noble wrote:
> > > > Hi.
> > > > I am getting an error when trying to execute an NCL program that seems
> > > > to be from not setting my envronment correctly.
> > > > The error:
> > > > hundreds!
> > > >
> > > > It can't find the /usr/local/lib/ncarg/nclscripts/ directory, although
> > > > I have set my envronemnt according to the NCL installation directions.
> > > >
> > > > I use a .profile file. would you have any suggestions?
> > > >
> > > > export DISPLAY=:0.0
> > > > export NCARG_ROOT=/usr/local/
> > > > export PATH=$NCAR_ROOT/bin:$PATH
> > > > export MANPATH=$NCAR_ROOT/man:$MANPATH
> > > > export NETCDF=/usr/local/
> > > > export LD_LIBRARY_PATH=opt/intel/fc/10.0.017/lib
> > > > export JASPER=/usr/local/
> > > > ##alias ncl=/usr/local/ncl-3.4.0/bin/ncl
> > > > export https_proxy=10.116.34.1:80
> > > > PATH=$PATH:$HOME:/opt/local/bin:/opt/local/sbin:/opt/intel/fc/10.0.017/bin:/opt/intel/cc/10.0.018/bin:$NCARG_ROOT/bin:/usr/local/bin:/usr/local/rsi/idl_5.6/bin
> > > > export PATH
> > > >
> > > > set -o emacs
> > > > PS1=`logname`@`hostname -s`:'$PWD:'
> > > > . /sw/bin/init.sh
> > > > . ${HOME}/.aliases
> > > > ~
> > > >
> > > > Thank you.
> > > > Erik
> > > > _______________________________________________
> > > > ncl-talk mailing list
> > > > ncl-talk_at_ucar.edu
> > > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> > >
> > > _______________________________________________
> > > ncl-talk mailing list
> > > ncl-talk_at_ucar.edu
> > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> > >
> >
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Aug 01 2007 - 22:37:58 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 06 2007 - 08:08:45 MDT