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

Home » Public Forums » archive » how to extend a vector from size A to size B, (A<B) without "damage" the data in A
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 extend a vector from size A to size B, (A<B) without "damage" the data in A [message #79629 is a reply to message #79517] Fri, 16 March 2012 14:58 Go to previous message
santorofer is currently offline  santorofer
Messages: 14
Registered: July 2008
Junior Member
Hi Tito,

Could the following be what you are looking for?:

REBIN()

For example

; A four point vector:
A = [0, 10, 20, 30]

; Expand by a factor of 3:
B = REBIN(A, 12)

PRINT, B

IDL prints:

0 3 6 10 13 16 20 23 26 30 30 30

See the IDL help on this function.
Also, CONGRID() could also help, and is a bit more general than REBIN().

Cheers,
Fernando
Exelis VIS
[Message index]
 
Read Message
Read Message
Previous Topic: Re: cgHistoPlot - locations and histdata keywords?
Next Topic: Re: Array Tiling - The IDL Way

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

Current Time: Thu Oct 09 19:31:31 PDT 2025

Total time taken to generate the page: 1.03940 seconds