Re: Error from PATH setup

From: Saji Njarackalazhikam Hameed <saji_at_nyahnyahspammersnyahnyah>
Date: Thu, 2 Aug 2007 09:57:44 +0900

Eric,

Test with this if the required library is present:

vi $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl.test

It is likely that the library you mention will be called
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
and in that case it may be as simple as editing line 4 of your
script.

saji

* Erik Noble <enoble_at_giss.nasa.gov> [2007-08-01 20:44:57 -0400]:

> 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

-- 
Saji N. Hameed
APEC Climate Center          				+82 51 668 7470
National Pension Corporation Busan Building 12F         
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705			saji_at_apcc21.net
KOREA
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Aug 01 2007 - 18:57:44 MDT

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