Dear NCL Community,
I would like to assign an array of strings to a
variable as an attribute, and then output this
variable as netCDF. The assignment of the attribute is
successful, but when I output the variable as netCDF,
only the first string in the array is written as the
attribute!
Here is my sample code:
names = (/"a","b","c","d"/)
x_at_names_of_stations = names
When I print "x_at_names_of_stations" at this stage, it
is fine. But when I write
fout = addfile("mydata.nc","c")
fout->data = x
and then read this netCDF file, "mydata.nc", I see
that only "a" is written as the "names_of_stations"
attribute of "data".
Do you have any idea to solve this problem?
Thanks in advance
Ozan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 12 2007 - 08:21:41 MST
This archive was generated by hypermail 2.2.0 : Mon Nov 12 2007 - 09:17:56 MST