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

Home » Public Forums » archive » Re: How to read the data like this?
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: How to read the data like this? [message #36545 is a reply to message #36535] Tue, 30 September 2003 05:13 Go to previous messageGo to previous message
Wonko[3] is currently offline  Wonko[3]
Messages: 9
Registered: February 2003
Junior Member
wang_likun@yahoo.com (wang_likun@yahoo.com) writes:

> Hi,all:

> Could you give me help to read the data with fixed column and rows but
> containing some missing data? Something like this:

[...]

You can do this easily using READ_ASCII. Create a template before
this, using fixed width:

mytemplate = ascii_template( filename )
result = read_ascii( filename, template=mytemplate )

If you need to do this more often, I suggest to either SAVE the
template to a file, or create this structure in your program on the
fly.

Alex
--
Alex Schuster Wonko@wonkology.org PGP Key available
alex@pet.mpin-koeln.mpg.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: freeware contour plotting software for Windows
Next Topic: Re: freeware contour plotting software for Windows

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

Current Time: Fri Oct 10 01:17:11 PDT 2025

Total time taken to generate the page: 0.00645 seconds