Re: Do not find files using "addfiles"

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sun, 15 Jul 2007 21:46:46 -0600 (MDT)

Hi Erik

I just ran a simple test [4.3.0] which is very similar to yours:

begin
     ;diri = "../wrf_case_V2.2/060726-EC/netCDFs-lambert/cntrl/"
      diri = "../"
      fils = systemfunc("ls " +diri+ "wrfout_d01*nc")
      print( fils )
      h = addfiles(fils, "r")
      printVarSummary( h )
      print( h[0] )
end

It worked correctly.

addfiles should be unchanged from a034 to 4.3.0.

===

If you are in the directory with the NCL scritp and enter:

  ls: ../wrf_case_V2.2/060726-EC/netCDFs-lambert/cntrl/wrfout_d02_2006-07-*.nc:

and get the message. I think there is someting
wrong with the path.

D

On Mon, 16 Jul 2007, ern_at_student.matnat.uio.no wrote:

> Hi all,
> I am trying to use "addfiles" but I only get the error message:
>
> ls:
> ../wrf_case_V2.2/060726-EC/netCDFs-lambert/cntrl/wrfout_d02_2006-07-*.nc:
> No such file or directory
>
> It works well reading the file using the "addfile" command.
>
> I have tried the different examples given under "/addfiles" on the
> web-page, for example:
>
> begin
> diri = "../wrf_case_V2.2/060726-EC/netCDFs-lambert/cntrl/"
> fils = systemfunc("ls " +diri+ "wrfout_d02_2006-07-*.nc")
> h = addfiles(fils, "r")
> end
>
> I have the following ncl-version: NCAR Command Language Version 4.2.0.a034
>
> Do I perhaps need to "load" something special?/in a special order?
> I have tried to load "contributed.ncl", but it doesn't help.
>
> Any idea of why this doesn't work??
>
> Thankful for your help!
> /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
Received on Sun Jul 15 2007 - 21:46:46 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 17 2007 - 06:52:01 MDT