Re: Addfiles

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu Jan 05 2012 - 13:28:52 MST

What is the output from " print(fils) " ?

On 01/05/2012 12:31 PM, Nkese Mc Shine wrote:
> Dear All,
>
> I am writing a script containing addfiles. When I try to call the script
> in the command line,it stops when it reaches the line containing
> addfiles and says that "(fads) does not reference a file" , however if I
> put the entire script in the command line it works.Can you all help me
> please. I am using NCL version 6.0.0. Below is the script that I am writing.
>
> 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"
>
> begin
>
> data="/root/Desktop/draft/Datasst"
> fils = systemfunc("ls "+data+"/*/*.nc") ; listing all files in all folders
> print(fils)
> fads = addfiles(fils,"r")
>
> end
>
>
> Regards,
> Nkese.

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jan 5 13:29:01 2012

This archive was generated by hypermail 2.1.8 : Wed Jan 18 2012 - 09:21:55 MST