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

Home » Public Forums » archive » Re: MAKE_ARRAY question
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: MAKE_ARRAY question [message #24729 is a reply to message #24728] Fri, 13 April 2001 10:19 Go to previous messageGo to previous message
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
Ben Tupper wrote:
>
> Hi Paul,
>
> X = MAKE_ARRAY( n_pts, TYPE = 4 + KEYWORD_SET(DOUBLE), /NOZERO)
>
> The above should get you the correct type of array (Double type is 5
> while Float type is 4.)

True, but if double = 3 (in which case the keyword is also considered "set") the type
would be wrong (a string array!).

I don't know why users would do double = 3 in the call, but, in my experience at least,
I've seen 'em do stranger things..... (me included of course - probably the worst offender
actually :o).

> I don't know if you can get into trouble with
> simply passing the DOUBLE keyword along. It works on this MAC (a float
> is returned if DOUBLE = 0).

Works on my linux box too. I just want the behaviour blessed via some RSI documentation.
Without that, I'm assuming it's pure luck.

Thanks,

paulv

--
Paul van Delst A little learning is a dangerous thing;
CIMSS @ NOAA/NCEP Drink deep, or taste not the Pierian spring;
Ph: (301)763-8000 x7274 There shallow draughts intoxicate the brain,
Fax:(301)763-8545 And drinking largely sobers us again.
paul.vandelst@noaa.gov Alexander Pope.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Postscript font usage
Next Topic: Re: FOR statement

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

Current Time: Sat Oct 11 01:38:56 PDT 2025

Total time taken to generate the page: 1.67804 seconds