Hi users,
I have a problem with the function str_write when I do a loop.
To understand what happens, I just add a loop to the example:
do it=0,2,1
a = (/111, 222, 333, 444/)
b = (/1.1, 2.2, 3.3/)
c = (/"a", "b", "c"/)
d = (/11h, 22h/)
f = (/11l, 22l, 33l, 44l, 55l, 66l/)
alist = [/a, b, c, d, f/]
header = (/"--------------------------------", \
"This is a file header", \
"--------------------------------"/)
footer = (/"--------------------------------", \
"This is a file footer", \
"--------------------------------"/)
hlist = [/header/]
flist = [/footer/]
filename= "test_" + it + ".txt"
str_write(filename, "w", hlist, "%s")
str_write(filename, "a", alist, "%d%16.2f%s%d%ld")
str_write(filename, "a", flist, "%s")
end do
In the fist file (test_0.txt), there is no problem but in the other
files (test_1.txt and test_2.txt), there is only the first column!!
I use the version 6.1.0_beta.
Thank you
Virginie
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Oct 12 08:22:42 2012
This archive was generated by hypermail 2.1.8 : Fri Oct 12 2012 - 15:38:19 MDT