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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: number problem [message #61172] Wed, 09 July 2008 21:59 Go to next message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
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.
Re: number problem [message #61194 is a reply to message #61172] Wed, 09 July 2008 11:11 Go to previous messageGo to next message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
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.
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?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: WIDGET_LABEL query.
Next Topic: IDL_M_INVALIDMSG

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

Current Time: Fri Oct 10 12:06:59 PDT 2025

Total time taken to generate the page: 1.20230 seconds