readAsciiTable and automatic array dimension reduction

From: Lunde, Bruce N CIV NAVOCEANO, NP1 <bruce.lunde_at_nyahnyahspammersnyahnyah>
Date: Tue, 23 Jun 2009 14:30:45 -0400


A minor observation:

When using readAsciiTable(filename,1,"float",0)
to read one column of data, it returns an array
with dimensions numpt x 1.

I was assuming that it would return an array of
dimension numpt , based on NCL's automatic array
dimension reduction feature.

If you do

data = readAsciiTable(filename,1,"float",0)

and then

newdata = data(:,0)

the dimension of "newdata" is a 1D array of
length numpt.

I'm not sure what should be the preferred
behaviour of readAsciiTable ?

Thanks, Bruce

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:

Received on Tue Jun 23 2009 - 12:30:45 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 25 2009 - 06:30:15 MDT