Re: bug in getfilevarnames

From: Jim Edwards (jedwards AT ucar.edu)
Date: Tue Nov 30 2004 - 10:15:40 MST


Mark,

I just simplified the problem for the discussion, I am normally opening
multiple files.

Mark J. Stevens wrote:

>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.
>>
>>
>
>
>

-- 
Jim Edwards             jedwards AT ucar.edu
IBM Applications Analyst
NCAR SCD
BOULDER CO  303-497-1842 

_______________________________________________ ncl-talk mailing list ncl-talk AT ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Wed Dec 01 2004 - 10:17:16 MST