Hi,
Try this:
http://www.ncl.ucar.edu/Document/Functions/Built-in/write_matrix.shtml
write_matrix will write out a 2D variable.
Soumik
-- "Numbing the pain for a while will make it worse when you finally feel it. ~J.K. Rowling" ***************************************** Soumik Basu Graduate Student, Research Assistant International Arctic Research Center University of Alaska Fairbanks Fairbanks,Alaska,USA ***************************************** On 2013-06-13 09:45, cheryl Ma wrote: > Hi all, > > We can use asciiwrite to write out a 1D variable to a ascii file. e.g. > a(100), so the command like > > lines = sprintf ("%10.2f",a) > asciiwrite("outfile",lines) > > now I want to write out a 2D variable, e.g. b(100,150), how to write > it out to a ascii file? > > Thanks in advance, > Xiaoyan > _______________________________________________ > 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 Thu Jun 13 11:49:20 2013
This archive was generated by hypermail 2.1.8 : Mon Jun 24 2013 - 11:46:47 MDT