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

Home » Public Forums » archive » volumes of contiguous areas that have range of values
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
volumes of contiguous areas that have range of values [message #93543] Tue, 16 August 2016 09:12 Go to next message
astroboy.20000 is currently offline  astroboy.20000
Messages: 39
Registered: August 2012
Member
Hello, sorry for a dumb question but I can't find anything in the documentation and I'm at my wit's end.

Some years ago I had a 3D dataset in which certain volume elements had values between, say, 100 and 150. The IDL routine was about to identify all the elements with values in that range (of course) and also to compute how many continuous regions created by such elements, and the volume of each contiguous region.

Can anyone tell me the name of the routine?

Thanks,

Mark
Re: volumes of contiguous areas that have range of values [message #93544 is a reply to message #93543] Tue, 16 August 2016 09:33 Go to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
On Tuesday, 16 August 2016 09:13:49 UTC-7, M Q wrote:
> Hello, sorry for a dumb question but I can't find anything in the documentation and I'm at my wit's end.
>
> Some years ago I had a 3D dataset in which certain volume elements had values between, say, 100 and 150. The IDL routine was about to identify all the elements with values in that range (of course) and also to compute how many continuous regions created by such elements, and the volume of each contiguous region.
>
> Can anyone tell me the name of the routine?
>
> Thanks,
>
> Mark

Hi Mark,

I think LABEL_REGION will do the trick:
http://www.harrisgeospatial.com/docs/LABEL_REGION.html

Start with something like this:
inRange = data GT 100 AND data LT 150
regions = LABEL_REGION(inRange) ; /ALL_NEIGHBORS may be desired

Then, HISTOGRAM (possibly with REVERSE_INDICES) is helpful, to get at the number (and the locations) of elements in each region:
http://www.harrisgeospatial.com/docs/histogram.html

I hope that helps to point you in the right direction!

Cheers,
-Dick

Dick Jackson Software Consulting Inc.
Victoria, BC, Canada --- http://www.d-jackson.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Code for network analyses
Next Topic: in plot_image how do we change the tick values

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

Current Time: Wed Oct 08 11:43:13 PDT 2025

Total time taken to generate the page: 0.00507 seconds