Dear Mark
The documentation at
(http://ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#Coordina
tes) implies that coordinate variables can only be "numbers" because they
"represent the data coordinates for each index..." and need to be
monotonically varying.
Good luck
Andrea
-- Andrea N. Hahmann Senior Scientist Wind Energy Division Risų DTU Technical University of Denmark Risų National Laboratory for Sustainable Energy Frederikborgvej 399, P.O. Box 49 4000 Roskilde, Denmark Direct +45 4677 5471 Mobil: +45 2133 0550 ahah@risoe.dtu.dk www.risoe.dtu.dk > From: mark collier <Mark.Collier@csiro.au> > Date: Tue, 08 Jun 2010 17:30:33 +1000 > To: <ncl-talk@ucar.edu> > Subject: a coordinate made up from an array of strings > > Hi, > I'm wondering why I cannot write out a coordinate which is made up > from an array of strings like in the following? > > load "/home/599/mac599/marsland/all_scripts.ncl" > > begin > > txtlabel = (/"bering_strait","denmark_strait","canadian_archipelago"/) > > time = (/1.0,2.0,3.0/) > > transports=new((/dimsizes(time),dimsizes(txtlabel)/),float) > > transports!0 = "time" > transports!1 = "transport" > > transports&time = time > transports&transport = txtlabel > > output = addfile("test_coo.nc","c") > output->transports=transports > > end > > Regards, > Mark. > _______________________________________________ > 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-talkReceived on Tue Jun 8 01:53:36 2010
This archive was generated by hypermail 2.1.8 : Fri Jun 11 2010 - 09:33:24 MDT