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

Home » Public Forums » archive » Re: 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 #17878] Thu, 18 November 1999 00:00 Go to previous message
Adrian Clark is currently offline  Adrian Clark
Messages: 6
Registered: October 1999
Junior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Windows PostScript Preview Image
Next Topic: Re: At Last! A Subsititute for CW_Field.

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

Current Time: Wed Oct 08 17:03:14 PDT 2025

Total time taken to generate the page: 0.00597 seconds