Lost "long_names"

From: Michael Notaro <mnotaro_at_nyahnyahspammersnyahnyah>
Date: Wed, 06 May 2009 14:51:25 -0500

If I open a file, retrieve all the variables, and write them
to a new file, some of the variables lose their long_names
in the process, mainly integer variables. Please see below.
Any idea how to maintain all the variables' info, including
long_name, dimensions, units, etc?

Mike

a=addfile("originalfile.nc","r")
.....
......
out=addfile("newfile.nc","c")
do i=0,numb-1
    v = a->$names(i)$
    out->$names(i)$ = v
    delete(v)
end do

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 06 2009 - 13:51:25 MDT

This archive was generated by hypermail 2.2.0 : Wed May 06 2009 - 16:48:59 MDT