Hi Chiara,
You are not calling readAsciiTable correctly.
The second argument is not the number of rows by the number of columns.
Rather, it is just the number of columns.
Try this:
ncol = numAsciiCol(filename)
x = readAsciiTable(filename,ncol,"float",6)
--Mary
On Feb 15, 2012, at 8:45 AM, Chiara Antoniazzi wrote:
>
> Dear ncl,
> I have a problem opening this ascii file (attached) with "readAsciiTable".
> There are 6 fixed header rows with letters and numbers
> and THEN a matrix (with 174rows and 177 columns).
> If I use this command:
> x = readAsciiTable(filename,(/180,177/),"float",6)
> it doesn't work, maybe because I have numbers in the header rows.
> Which command I should use?
>
> Thank you for helping me.
>
> Chiara
>
>
>
> <dc_20070315.txt>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Feb 15 12:53:11 2012
This archive was generated by hypermail 2.1.8 : Fri Feb 17 2012 - 08:50:10 MST