fin = addfile ("xxx.nc" , "r")
fout = addfile ("yyy.nc" , "c")
"fin" and "fout" have a dual nature.
They are 'file references' and 'variables'.
Hence, to copy file attributes:
copy_VarAtts(fin, fout) ; contributed.ncl
or
fileattdef( fout, fin )
The functions show the correct argument order.
Lei Meng wrote:
> Hi,
> I was wondering if there is an easy way to copy global attributes
> from one file to another file. The global attributes contain multiple
> lines. Thanks,
> Lei
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Nov 28 16:37:00 2009
This archive was generated by hypermail 2.1.8 : Sun Nov 29 2009 - 20:52:58 MST