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

Home » Public Forums » archive » resize an array
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
resize an array [message #91057] Fri, 29 May 2015 04:37 Go to next message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Hi

I am using the REBIN function to resize my arrays but because the supplied dimensions must be integral multiples of the original dimensions I have a problem because the supplied dimensions are not always factors of original. Does anyone knows any other function which resizes arrays without this limitation?

With Thanks
Re: resize an array [message #91058 is a reply to message #91057] Fri, 29 May 2015 05:04 Go to previous messageGo to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Friday, May 29, 2015 at 1:37:17 PM UTC+2, g.na...@gmail.com wrote:
> Hi
>
> I am using the REBIN function to resize my arrays but because the supplied dimensions must be integral multiples of the original dimensions I have a problem because the supplied dimensions are not always factors of original. Does anyone knows any other function which resizes arrays without this limitation?
>
> With Thanks

Easy one: congrid()
Since I've been there before, I can give the following tip.
If you're looking at the documentation of rebin() and find out that it does not fulfill your requirement to 100%, then have a look at the end of the help page in the "see also" section. Very often your answer will be hidden there! I do this all the time when I don't remember the name of a function/procedure, I look for it this way.

Cheers,
Helder
Re: resize an array [message #91059 is a reply to message #91058] Fri, 29 May 2015 05:09 Go to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Thanks for the tip. I didn't notice :)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 8.0 onwards: can I always use the same workspace?
Next Topic: 3D point cloud visualization: filled polygons in the front, different fill colour + lines in the back

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

Current Time: Wed Oct 08 07:16:54 PDT 2025

Total time taken to generate the page: 0.00567 seconds