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

Home » Public Forums » archive » Real Number on PVWAVE
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: Real Number on PVWAVE [message #17976 is a reply to message #17901] Thu, 18 November 1999 00:00 Go to previous messageGo to previous message
daniele.monti is currently offline  daniele.monti
Messages: 3
Registered: November 1999
Junior Member
On 18 Nov 1999 09:47:46 GMT, "Adrian Clark" <adrian.clark@gecm.com>
wrote:

> Dear Daniele,
>
> It looks to me as though WAVE is interpreting your numbers as floats and
> then truncating them. Did you specify your variable as a double before
> reading? I suspect that if this is not specified, float is the expected
> default when a '.' is found in a number. I got the following to work:
>
> wave> DELVAR,varArray
> make sure varArray doesn't already exist as a float from previous attempts!
> wave> varArray=DBLARR(1)
> tell wave to expect doubles
> wave> status=DC_READ_FREE('filename',varArray,/resize)
> /resize will resize varArray to cope with amount of data present
> wave> PRINT,varArray,Format="(D11.5)"
> print it in whatever format seems appropriate
>
> HTH
>
> Yours,
> Adrian
>


Thank you, thank you very much !!!
It works !!!

Cheers,

Daniele
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL web resource
Next Topic: too many TLB resize events

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

Current Time: Sun Oct 12 07:08:09 PDT 2025

Total time taken to generate the page: 0.73137 seconds