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

Home » Public Forums » archive » [Q] Reading from ASCII file?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
[Q] Reading from ASCII file? [message #12267] Thu, 23 July 1998 00:00
TSS Operator on duty is currently offline  TSS Operator on duty
Messages: 1
Registered: July 1998
Junior Member
Hi!

I'm reading UTM map coordinates from an ASCII file, which has lines
like:
681765.37 7450650.54 334 1

I read this with code on the form:
while (NOT EOF(unit)) do begin
format='(2D,2I)'
readf,unit,temp1,temp2
UTMcoords(*,i)=temp1
pixelcoords(*,i)=temp2
i=i+1
endwhile
(all relevant variables in double format)

Everything works out fine, exept that the second column is rounded off:
7450650.54 ---> 7450650.5
that is: 8 numbers in any case (before or after the decimal-point). "So
what?" you're saying? The problem is that I really need all my 9
numbers. Anyone got an idea??

Regards,
Gunnar L. Rasmussen, Applied Physics, Univ. of Tromsoe, Norway
[Message index]
 
Read Message
Previous Topic: IDL in 32 bpp ?
Next Topic: Re: my god this should be easy!

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

Current Time: Wed Oct 08 18:42:34 PDT 2025

Total time taken to generate the page: 0.00232 seconds