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

Home » Public Forums » archive » Clip 2D Array in IDL
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
Clip 2D Array in IDL [message #92162] Thu, 22 October 2015 07:05 Go to next message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Hello everyone!

I have got a 2D array that I would like to clip.

Let's say I have an array which is 2000 by 2100 (float) cells. Now I would like to cut out a rectangle inbetween following points:

[1233,2060] ...................[1315,2060]
. .
. .
[1233,2017] ................... [1315,2017]

How could I do this?

Thanks!
Re: Clip 2D Array in IDL [message #92163 is a reply to message #92162] Thu, 22 October 2015 08:06 Go to previous messageGo to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
I guess:
array[1233:1315,2017:2060]

http://www.exelisvis.com/docs/Array_Subscript_Ranges.html

Cheers,
Helder

On Thursday, October 22, 2015 at 4:05:19 PM UTC+2, Kai Heckel wrote:
> Hello everyone!
>
> I have got a 2D array that I would like to clip.
>
> Let's say I have an array which is 2000 by 2100 (float) cells. Now I would like to cut out a rectangle inbetween following points:
>
> [1233,2060] ...................[1315,2060]
> . .
> . .
> [1233,2017] ................... [1315,2017]
>
> How could I do this?
>
> Thanks!
Re: Clip 2D Array in IDL [message #92170 is a reply to message #92163] Fri, 23 October 2015 01:08 Go to previous message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Am Donnerstag, 22. Oktober 2015 17:06:26 UTC+2 schrieb Helder:
> I guess:
> array[1233:1315,2017:2060]
>
> http://www.exelisvis.com/docs/Array_Subscript_Ranges.html
>
> Cheers,
> Helder
>
> On Thursday, October 22, 2015 at 4:05:19 PM UTC+2, Kai Heckel wrote:
>> Hello everyone!
>>
>> I have got a 2D array that I would like to clip.
>>
>> Let's say I have an array which is 2000 by 2100 (float) cells. Now I would like to cut out a rectangle inbetween following points:
>>
>> [1233,2060] ...................[1315,2060]
>> . .
>> . .
>> [1233,2017] ................... [1315,2017]
>>
>> How could I do this?
>>
>> Thanks!


Perfect it works. Thanks Helder!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Random 'Unable to allocate memory' error
Next Topic: Writing 2 arrays of a different type into one text file

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

Current Time: Wed Oct 08 11:36:40 PDT 2025

Total time taken to generate the page: 0.00436 seconds