How to use write_matrix to output data with comma delimiter

From: Guangshan chen <gchen9_at_nyahnyahspammersnyahnyah>
Date: Thu, 17 May 2007 16:19:09 -0500

Dear NCL users,

Now I want to use write_matrix to output 1D time series to a text
file with comma delimiter between column.
Here is what I did:

print("output txt file")
fmtxt = "120(f15.7,',')"
opt = True
opt_at_fout = "oprec_idm_ts.txt"
write_matrix (oprec_idm_ts,fmtxt,opt)

But It did not work and showed these wrong information:

(0) output txt file
fatal:Number of dimensions in parameter (0) of (write_matrix) is (1),
(2) dimensions were expected
fatal:Execute: Error occurred at or near line 171 in file
script_get_ts.ncl

What does this mean? Because my variable is not 2D or other things?

Thanks

Guangshan

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu May 17 2007 - 15:19:09 MDT

This archive was generated by hypermail 2.2.0 : Fri May 18 2007 - 09:11:09 MDT