[ncl-talk] write_table format option & write_matrix appending

Zhifeng Yang yangzf01 at gmail.com
Tue Jul 21 16:39:50 MDT 2015


Hi

1. I use write_table to write array into a text file. Since I need to write
10 columns of float data, I use the following format.

write_table("list.txt", "a", alist, 10"%16.2f")

Unfortunately, NCL can't realize it. The error occurs. Then I use the
following format, and it works

write_table("list.txt", "a", alist,
"%16.2f%16.2f%16.2f%16.2f%16.2f%16.2f%16.2f%16.2f%16.2f%16.2f")

However, the second one is really tedious. Do you know what is the best way
to use format in write_table?

2. I also want to use write_matrix. Unfortunately, I don't find how to use
appending with write_matrix. Do you know whether there is appending feature
for write_matrix?

Thank you
Zhifeng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150721/c3553a30/attachment.html 


More information about the ncl-talk mailing list