Sorry, stupid of me... all i had to do was to pass the file-pointer (f)
to getvaratts(f)
* Saji Njarackalazhikam Hameed <saji_at_apcc21.net> [2007-08-06 16:21:59 +0900]:
> Hi Dennis,
>
> Thanks, but in my case I do not know before-hand any of the
> file attributes.
>
> Is there something equivalent to the NCL function "getvaratts" ?
> Or the partner of "fileattdef( ncf, globalAtt )"
>
> saji
> ...
>
>
> * Dennis Shea <shea_at_ucar.edu> [2007-08-06 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
>
> --
> Saji N. Hameed
>
> APEC Climate Center +82 51 668 7470
> National Pension Corporation Busan Building 12F
> Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji_at_apcc21.net
> KOREA
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- Saji N. Hameed APEC Climate Center +82 51 668 7470 National Pension Corporation Busan Building 12F Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji_at_apcc21.net KOREA _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Mon Aug 06 2007 - 01:26:01 MDT
This archive was generated by hypermail 2.2.0 : Mon Aug 06 2007 - 08:08:46 MDT