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 #72451 is a reply to message #72440] Fri, 10 September 2010 01:28 Go to previous messageGo to previous message
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
On Sep 10, 6:07 am, 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!

There's probably a few ways to do this depending on the exact dataset
(especially the relative resolution differences). One way would be to
obtain the corner coordinates of the pixel in your low resolution
image then use envi_convert_file_coordinates to convert these to
corner pixels in the high resolution image. Then use envi_get_data on
the subsetted dimensions. Be careful with adding/taking 0.5 of a pixel
when appropriate.

Max
[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 17:53:12 PDT 2025

Total time taken to generate the page: 0.00428 seconds