IMHO:
http://www.ncl.ucar.edu/Support/talk_archives/2009/2675.html
> fin = addfile ("xxx.nc" , "r")
> fout = addfile ("yyy.nc" , "c")
> "fin" and "fout" have a dual nature[:]
> They are [both] 'file references' and 'variables'.
... this is neither readily apparent nor pointed out in the docs,
and ...
> Hence, to copy [global] attributes:
> copy_VarAtts(fin, fout) ; contributed.ncl
> or
> fileattdef( fout, fin )
... I have found this very useful. Therefore (IMHO) this capability
should be emphasized in the documentation, esp for the somewhat-
unfortunately-named copy_VarAtts.
FWIW, Tom Roche <Tom_Roche@pobox.com>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Feb 5 12:11:01 2013
This archive was generated by hypermail 2.1.8 : Fri Feb 22 2013 - 17:42:16 MST