>
> Hello All
>
> I was wondering if any one knows if asciiread has a limitation on
> the length of a string it can read from a ascii file. I am running into
> a situation where the first line of the ascii file I am trying to read
> from is 600 characters long, but asciiread is only grabing the first 257
> characters of the first line. Then when asciiread grabs the second line
> it is concatenatinge the first 257 characters of the first line with to
> 200 characters of the second line to come up with the a string of length
> 457. I don't think there are any funky characters in the file, since the
> file was genreated by fortran code. Does any one have any ideas? Thanks.
>
> Scott
Hi Scott,
NCL strings are limited to 256 characters. I would recommend reading
in your file as characters if possible:
c = asciiread("file.txt",-1,"character")
If you have 600 characters in the file, this will give you a character
array with 600 elements.
--Mary
> ********************************************
>
> Scott Snodgrass
> Student Assistant
> National Center for Atmospheric Research
> Research Application Program
> P.O. Box 3000, Boulder, CO 80307-3000
> Phone: 303-497-2829
>
> ********************************************
> _______________________________________________
> ncl-talk mailing list
> ncl-talk AT ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk AT ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Sat Nov 09 2002 - 08:54:37 MST