Re: readAsciiHead

From: David Ian Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Mon, 19 Jun 2006 15:20:10 -0600

Hi Michael,
Even after limiting the size of your file to 248 columns of numbers
(where the numbers contain several digits and are
separating by spaces), you will have lines with more than 256
characters. numAsciiCol still tries to read each
line into an NCL string before it figures out how many columns of
numbers there are. The strings are currently limited
to 256 characters in NCL, but the routine that reads the strings is not
enforcing the limit, leading to memory

A fix for this problem was implemented in February but it has not yet
made it into the released version.
The fix returns an error message and truncates the string to the
maximum allowed length.
We are investigating what would be required to make longer strings
possible in NCL.

On tempest, /contrib/bin/ contains the fix for the core dump,
although it does not solve your problem with
reading all the data in the file.

On Jun 19, 2006, at 1:59 PM, Michael Notaro wrote:

> I tried removing the header and just having 248 columns of numbers.
> Then I tried using numAsciiCol and still get a bus error / core dump.
> Is there a size limit on how big of an ascii file that NCL can read?
> The data is nicely formatted as space delimited.
> Mike
> _______________________________________________
> ncl-talk mailing list

ncl-talk mailing list
Received on Mon Jun 19 2006 - 15:20:10 MDT

This archive was generated by hypermail 2.2.0 : Mon Jun 19 2006 - 15:40:00 MDT