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

Home » Public Forums » archive » Re: number problem
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: number problem [message #61266 is a reply to message #61172] Thu, 10 July 2008 07:01 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jul 9, 11:59 pm, d.po...@gmail.com wrote:
> On 9 Jul., 11:11, Conor <cmanc...@gmail.com> wrote:
>
>
>
>> On Jul 9, 6:50 am, d.po...@gmail.com wrote:
>
>>> folks
>>> i have a .TXt file like this:
>
>>> 499750.95298079  3387735.57676302     1259.18847656      34.63407516
>>> 499730.95491979  3387755.57503202     1259.18847656     34.66235733
>>> 499710.95685879  3387775.57330102     1257.50012207      34.69063950
>>> 499690.95879779  3387795.57157002     1255.97583008     34.71892166
>
>>> and i did some analyze in IDL but result is like this:
>
>>> 499750. 3.38774e+006      1259.00      34.0000
>>> 499730. 3.38776e+006      1259.00      34.0000
>>> 499710. 3.38778e+006      1257.00      34.0000
>>> 499690. 3.38780e+006      1255.00      34.0000
>
>>> but  as you can see the result are not same. i used long-float and
>>> ULL. but no answer.
>>> any help
>>> Cheeres
>
>> I'm afraid you're going to have to include a lot more information
>> before anyone can help.  How are you reading in the data?  It looks
>> like you're just reading in the data as a long integer, when in
>> reality you want doubles.- Zitierten Text ausblenden -
>
>> - Zitierten Text anzeigen -
>
> yes i just read the data and keep it in the 4*1470 array. i just want
> to get the same data in the resualt.

Yes - we need more info to go on...

IDL> arr = dblarr(4,4)
IDL> openr, 1, 'c:\test.txt'
IDL> readf, 1, arr
IDL> free_lun, 1
IDL> print, arr
499750.95 3387735.6 1259.1885 34.634075
499730.95 3387755.6 1259.1885 34.662357
499710.96 3387775.6 1257.5001 34.690640
499690.96 3387795.6 1255.9758 34.718922

Hmmm... looks okay to me?
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: WIDGET_LABEL query.
Next Topic: IDL_M_INVALIDMSG

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

Current Time: Sun Oct 12 00:33:16 PDT 2025

Total time taken to generate the page: 0.80170 seconds