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

Home » Public Forums » archive » Re: subset an image by coordinates
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: subset an image by coordinates [message #68083 is a reply to message #68082] Sun, 20 September 2009 07:24 Go to previous messageGo to previous message
Robert Moss, PhD is currently offline  Robert Moss, PhD
Messages: 29
Registered: November 2006
Junior Member
On Sep 20, 8:12 am, Jeremy Bailin <astroco...@gmail.com> wrote:
> On Sep 19, 11:14 pm, "Alvaro Paredes L." <alvaropared...@gmail.com>
> wrote:
>
>
>
>> Hi all
>
>> I was searching on the web, but i didn't find an answer to my problem.
>> I need to make a subset on an image using
>
>> coordinates, but i can't find a way to do it. I see this method
>
>> http://groups.google.es/group/comp.lang.idl-pvwave/browse_fr m/thread/...
>> and this other (very
>
>> similar) http://www.mombu.com/programming/idl/t-subset-an-image-by-ro i-in-idl-...,
>> but don't use
>
>> coordinates, use an evf file.
>
>> IDL/ENVI has a widget that use only two coordinates to cut (upper-left
>> and lower-right coordinate), but it isn't
>
>> fully automatically.
>
>> Is there any function to cut the image with set coordinates and save
>> it in a new file?
>
>> I really hope you can help me... I'm not a programmer and this
>> sometimes it's very hard
>
>> Thanks!
>
>> Alvaro
>
> Do you mean like:
>
> newimage = oldimage[x0:x1,y0:y1]
>
> ?
>
> -Jeremy.

If the original author is looking to subset by map coordinates, he
needs to use the procedure

ENVI_CONVERT_FILE_COORDINATES, FID, XF, YF, XMap, YMap

to convert the corners of his image in map coordinates to file
coordinates. Once he has the proper file coordinates, he can subset
the image. If you give us a little more specifics of what you are
trying to do, we can probably provide more information.

r
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Structure
Next Topic: structure

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

Current Time: Sun Oct 12 07:05:02 PDT 2025

Total time taken to generate the page: 3.20098 seconds