Addfiles is for use with multiple filenames in an array of strings. Using it
with one file is not the correct way to call it. Why would you do that when
you can use addfile instead?
On Tuesday 30 November 2004 08:36 am, Jim Edwards wrote:
> If I do :
>
> f = addfile("m.nc","r")
> names = getfilevarnames(f)
> print(names)
>
> I get a list of the variables in the file as I would expect. But if I do
>
>
> f = addfiles("m.nc","r")
> names = getfilevarnames(f[0])
> print(names)
>
> I get a lot of junk followed by a core dump. I suspect this same
> problem occurs for the other file query functions
> as well.
-- Mark J. Stevens Climate and Global Dynamics Division NCAR Mesa Laboratory, Room 320c ph: 303-497-1707 stevens@ucar.edu http://www.cgd.ucar.edu/~stevens _______________________________________________ ncl-talk mailing list ncl-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Wed Dec 01 2004 - 10:17:25 MST