comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Reading ASCII
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Reading ASCII [message #4798 is a reply to message #4706] Sun, 23 July 1995 00:00 Go to previous messageGo to previous message
gennari is currently offline  gennari
Messages: 25
Registered: April 1994
Junior Member
dean@phobos.cira.colostate.edu wrote:

: I am attempting to read a ASCII text file with topography data.
: This file was created on a DOS machine and has a CR and NL character
: after each line. In my attempts to read this file, I keep getting
: the CR and NL characters which messes up my image. Is there a
: way to read this file without picking up the CR and NL with IDL?
:
: Below is the sample PRO I am working with. The ASCII file
: is located on castor.cira.colostate.edu in Dean.
:
: Kelly Dean
: CSU/CIRA
:
If your using this data file on a Unix machice you can easily
convert it using a standard text converter.

SGI: to_unix
SUN Solaris 2.x : dos2unix

or use apropos on your system to see what's available, i.e.,

apropos "convert text"

I used the SGI utility to_unix and got a clean image from your data.
This solution seemed easier than converting the ASCII data within IDL.


Scott Gennari

--
------------------------------------------------------------ ------
University of Hawaii voice (808) 956 5392
Dept. of Information & Computer Sciences fax (808) 956 9399
2565 The Mall, Keller 304A
Honolulu, HI 96822 email gennari@Hawaii.Edu
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Question about MOMENT
Next Topic: Program code area exceeded?? 50k file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Nov 28 13:56:47 PST 2025

Total time taken to generate the page: 0.48160 seconds