Re: ascii read

From: ozan mert gokturk <gokturko_at_nyahnyahspammersnyahnyah>
Date: Tue, 19 Sep 2006 20:34:53 +0300

Hi Karen,

I do not know the cause for this problem, but I know the solution: if you add a
blank character to the end of your file, asciiread will probably read the last
value. Simply write

echo " " >> filename

This worked in my case. I hope it works for you too.

--Ozan

Quoting "Karen A. Kosiba" <kakosiba_at_purdue.edu>:

> Hello,
>
> I am having problems reading in an ascii file. It is a 125x125
> array, and when
> I read it in using vel = asciiread(fin,(/125,125/),"float"), I keep
> getting the
> message:
>
> "warning: asciiread: End of file reached and only (15624) elements were read
> from the file, filling remaining elements with the default missing
> value for the
> requested type"
>
> So for some reason, it is not reading in the last value. It is ordered
> columns=5, rows=3125.
>
> Thanks in advance!
>
> Sincerely,
> Karen Kosiba
>
>
> ********************************
> Karen A. Kosiba
> PhD Candidate
> Purdue University, Dept. of EAS
> http://www.purdue.edu/eas/severe/
> ********************************
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

----- End forwarded message -----

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Sep 19 2006 - 11:34:53 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 27 2006 - 08:36:48 MDT