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

Home » Public Forums » archive » simple question
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
simple question [message #20164] Thu, 18 May 2000 00:00 Go to next message
richard hilton is currently offline  richard hilton
Messages: 7
Registered: May 2000
Junior Member
This probably sounds like a stupid question but does anybody know of an IDL
equivilent to the CONTINUE command in C/C++ ? Your help would be much
appreciated.

Rich
fritz_2001@yahoo.com
Re: simple question [message #42372 is a reply to message #20164] Thu, 27 January 2005 13:05 Go to previous messageGo to next message
war is currently offline  war
Messages: 21
Registered: December 2003
Junior Member
Francois L. wrote:
> Hello,
>
> What would be a fast code for generating arrays such as:
>
> 0 0 0 0 0 0 1 2 3 4 5
> 1 1 1 1 1 0 1 2 3 4 5
> 2 2 2 2 2 0 1 2 3 4 5
> 3 3 3 3 3 and 0 1 2 3 4 5
>
> Thank you,
>
> Fran�ois.
>
>
Just wondering if this is not fast enough?

a= INDGEN(6)
PRINT, a#REPLICATE(1,4)

and
PRINT, REPLICATE(1,4)#a

(I am still reading David's page on rebin_magic).

A.
Re: simple question [message #42375 is a reply to message #20164] Thu, 27 January 2005 11:57 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Francois L. writes:

> What would be a fast code for generating arrays such as:
>
> 0 0 0 0 0 0 1 2 3 4 5
> 1 1 1 1 1 0 1 2 3 4 5
> 2 2 2 2 2 0 1 2 3 4 5
> 3 3 3 3 3 and 0 1 2 3 4 5

I think you better have a look at the Dimensional Juggling Tutorial:

http://www.dfanning.com/tips/rebin_magic.html

You will be surprised and amazed by what you find there.
Most people who read it can speed their IDL code up by a
factor of a 100 at least!

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Simple Question [message #54191 is a reply to message #20164] Tue, 29 May 2007 00:12 Go to previous messageGo to next message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
On 28 May 2007 19:54:14 -0700, ummughayda@gmail.com wrote:

> I haven't use IDL before but I want to purchase IDL software. If
> anyone knows, difference between IDL and IDL analyst. Is it can update
> from IDL to IDL analyst like IDL 6.3 to IDL 6.4?
> Thanks.

IDL Analyst provides extra mathematical and statistical routines (from
the IMSL C Numerical Library), so it's an add-on to IDL.
Re: Simple question [message #54200 is a reply to message #20164] Mon, 28 May 2007 14:32 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On May 28, 11:48 am, Julio <j...@cpa.unicamp.br> wrote:
> Hi!
>
> Simple question... I have:
>
> array1=['A', 'C', 'E']
> array2=['B', 'D', 'F']
>
> I need to merge these array to get:
>
> array_3=['A, 'B', 'C', 'D', 'E', 'F']
>
> How can I do that???
>
> Thanks!
> Julio

IDL> result = reform(transpose([[array1], [array2]]), 6)
IDL> print, result
A B C D E F

Mike
--
www.michaelgalloy.com
Re: Simple question [message #54201 is a reply to message #20164] Mon, 28 May 2007 13:58 Go to previous messageGo to next message
b_gom is currently offline  b_gom
Messages: 105
Registered: April 2003
Senior Member
Or, in the case where the values in the arrays are not necessarily in
increasing order:

IDL> array1=['aA', 'aC', 'aE']
IDL> array2=['bB', 'bD', 'bF']
IDL> array3=(transpose([[array1],[array2]]))[0:*]
IDL> print,array3
aA bB aC bD aE bF



On May 28, 11:54 am, Yaswant Pradhan <Yaswant.Prad...@gmail.com>
wrote:
> On May 28, 6:48 pm, Julio <j...@cpa.unicamp.br> wrote:
>
>> Hi!
>
>> Simple question... I have:
>
>> array1=['A', 'C', 'E']
>> array2=['B', 'D', 'F']
>
>> I need to merge these array to get:
>
>> array_3=['A, 'B', 'C', 'D', 'E', 'F']
>
>> How can I do that???
>
>> Thanks!
>> Julio
>
> array_3 = ([array1,array2])[sort([array1,array2])]
>
> ps: see help for UNIQ
Re: Simple question [message #54203 is a reply to message #20164] Mon, 28 May 2007 10:54 Go to previous messageGo to next message
yp is currently offline  yp
Messages: 42
Registered: February 2005
Member
On May 28, 6:48 pm, Julio <j...@cpa.unicamp.br> wrote:
> Hi!
>
> Simple question... I have:
>
> array1=['A', 'C', 'E']
> array2=['B', 'D', 'F']
>
> I need to merge these array to get:
>
> array_3=['A, 'B', 'C', 'D', 'E', 'F']
>
> How can I do that???
>
> Thanks!
> Julio

array_3 = ([array1,array2])[sort([array1,array2])]

ps: see help for UNIQ
Re: Simple Question [message #54274 is a reply to message #20164] Tue, 29 May 2007 19:53 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On May 29, 5:09 pm, mark...@gmail.com wrote:
> On May 29, 1:02 pm, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
> wrote:
>
>> IDLAnalystnow is include in IDL 6.4
>
> Is this true? I don't see anything about Analyst being included in
> IDL 6.4 on the RSI web site...

Well, it's there. You just might not have a license to use it.

Mike
--
www.michaelgalloy.com
Re: Simple Question [message #54276 is a reply to message #20164] Tue, 29 May 2007 16:09 Go to previous message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
On May 29, 1:02 pm, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
wrote:
> IDLAnalystnow is include in IDL 6.4


Is this true? I don't see anything about Analyst being included in
IDL 6.4 on the RSI web site...
Re: Simple Question [message #54283 is a reply to message #54191] Tue, 29 May 2007 10:02 Go to previous message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
IDL Analyst now is include in IDL 6.4
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Using .sav files outside of IDL
Next Topic: IDL FFTW3 DLL source

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

Current Time: Wed Oct 08 15:28:44 PDT 2025

Total time taken to generate the page: 0.00510 seconds