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

Home » Public Forums » archive » Re: How to extract a scalar from a vector?
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: How to extract a scalar from a vector? [message #74493 is a reply to message #74162] Tue, 18 January 2011 23:07 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Am 05.01.2011 00:37, schrieb David Fanning:
> Balt writes:
>
>> See this:
>> IDL> help,cal_data[sel_cal_data,3]
>> <Expression> DOUBLE = Array[1]
>>
>> How on earth can I make cal_data[sel_cal_data,3] into
>> a scalar?
>
> IDL> Help, (cat_data[sel_cal_data,3])[0]
>
> Cheers,
>
> David
>
>
>

Sometimes a scalar function
http://www.fz-juelich.de/icg/icg-1/idl_icglib/idl_source/idl _work/rb_lib/scalar.pro


makes it easier to initialize data e.g.
scalar(MAKE_ARRAY(1,val=1,type=m_type))

cheers

Reimar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Colorimetric map in IDL
Next Topic: Using color tables in function graphics

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

Current Time: Wed Oct 08 11:53:42 PDT 2025

Total time taken to generate the page: 0.00377 seconds