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

Home » Public Forums » archive » ASCII import
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: ASCII import [message #48096 is a reply to message #48004] Tue, 28 March 2006 16:12 Go to previous messageGo to previous message
Jeff N. is currently offline  Jeff N.
Messages: 120
Registered: April 2005
Senior Member
Ok, so now I think we're getting somewhere. What are the dimensions of
the final image though? Is it supposed to be a one column image as
well - so that the single column of ASCII input becomes a single column
image on output? If not, how do you know how to fill the output image?
Assuming that the first number in the text file is the value for pixel
[0,0], is the second number in the file for pixel [0,1], or is it for
[1,0], etc? You have to be able to describe all of this, which is why
it's impossible to just have one function that reads any ASCII file :)

Jeff



none wrote:
> hi jeff, thanks for replying; well, the txt file just consist of 1
> column of numbers, without semicolumns or commas separating them, and
> it should yield a one-band image, double precision data type.
> it looks like something like this..
> 0.3798
> -0.0277
> -0.0357
> -0.0287
> -0.0550
> -0.0415
> -0.0666
> -0.0868
> -0.0823
> -0.1248
>
> thanks
> marco
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: map_set, !map, !x, !p.position (and behind this curtain, !x.*)
Next Topic: A New error msg, for me: % Variable is undefined: <UNDEFINED>

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

Current Time: Wed Oct 08 18:44:28 PDT 2025

Total time taken to generate the page: 0.28644 seconds