Re: getting file attributes

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon, 06 Aug 2007 00:42:45 -0600

    f = addfile (... , "r")

    "f" is both a reference to a file *and* a variable.

    So ....

     print(f_at_data_source)

    if (isatt(f, "creation_date")) then
        ...
    end if

D
Saji Njarackalazhikam Hameed wrote:
> Dear All,
>
> Though there are many functions to retrieve meta data from variables in
> a supported file, there seems to be none to retrieve the so-called
> "global attributes" in a given file. I hope I am wrong and would be grateful if someone can tell me how to retrieve the global attributes from a file.
>
> thanks,
>
> saji
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Aug 06 2007 - 00:42:45 MDT

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