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

Home » Public Forums » archive » Re: Locate pixels that fall within other pixel-geo search
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: Locate pixels that fall within other pixel-geo search [message #72438] Sat, 11 September 2010 09:16 Go to previous message
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
On 11 Sep., 15:07, tegus <tegusbillhar...@gmail.com> wrote:
> On Sep 9, 4:07 pm, Snow53 <jennifer_wa...@hotmail.com> wrote:
>
>
>
>
>
>> Hi,
>
>> I have two images with slightly different dimensions, but the same
>> projection. Image 1 has coarse resolution. Image 2 has fine
>> resolution.
>
>> For each coarse pixel in Image 1, I need to find all fine resolution
>> pixels that fall within that pixel (based on the condition that they
>> fall within the same geographic extent of that coarse pixel).
>
>> I'm reading in the file with envi_open_file, so the files should have
>> all the geographic info needed.
>
>> Has anyone done something similar? Could anyone suggest a good way to
>> do this selection?
>
>> Thanks!
>
> Hi!
>
> In IDL you could do this using J.D. Smith's Hist_nd histogram routine
> which is available on David Fanning's website (dfanning.com). While on
> David's website you'll also want to check out JD Smith's HISTOGRAM:
> The Breathless Horror and Disgust.
> The way I work this problem is to rebin the fine resolution image
> (i.e., 2D histogram) to match the resolution (binning) of the coarse
> image (coverage and projection of the two images need to coincide).
> The key is to create a reverse index array using the REVERSE_INDICES
> keyword of Hist_nd. The reverse index allows you to look up the
> contents of each bin in the new histogram, based on the finer
> resolution, at the coarser resolution.
>
> Bill

Cool Way! Really.

Regards

Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: particle_trace confusion
Next Topic: Re: reverse color table

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

Current Time: Wed Oct 08 13:33:55 PDT 2025

Total time taken to generate the page: 0.00382 seconds