loop write variable to same file

From: Luo, Chao <chao.luo_at_nyahnyahspammersnyahnyah>
Date: Wed Aug 14 2013 - 18:31:27 MDT

Hi,

I try to loop write two dimensions variable to same filename, like:

opt = True
opt@fout = "foo.txt"

do i = 0, 10

write_matrix (a1(:,:), "2D18.10", opt)

end do

a1 is two dimensions variable by a1(x,2), x varies from i. The write_matrix only write last loop a1(10,2) to foo.txt. I think current variable a1 replace previous one. How to write total to same file?

Thanks,

cl

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Aug 14 18:31:39 2013

This archive was generated by hypermail 2.1.8 : Wed Aug 21 2013 - 13:54:15 MDT