reading ascii data with unequal number of columns

From: ozan mert gokturk <gokturko_at_nyahnyahspammersnyahnyah>
Date: Fri, 15 Sep 2006 11:16:36 +0300

Hello,

I have an ASCII file of known number of lines, however the number of elements on
each line is unknown. Is there any function in NCL that can read this data, so
that, if the resulting variable is A, A(0) is the first line, A(1) is the
second line, and so on?

ASCII file is like this:

0.1 0.2 0.4 0.1
2.3
2.7 2.0
1.1

I can fill the incomplete lines up to the number of elements of longest line and
then read the data into a 2-d array with missing values.. but I wondered if I
really have to do this..

Thanks

--Ozan

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Sep 15 2006 - 02:16:36 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 15 2006 - 17:13:34 MDT