reading ascii data with unequal number of columns

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


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.7 2.0

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..



This message was sent using IMP, the Internet Messaging Program.
ncl-talk mailing list
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