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

Home » Public Forums » archive » Re: how can i use envi in batch mode to build mask from EVFs
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: how can i use envi in batch mode to build mask from EVFs [message #52710 is a reply to message #52706] Mon, 26 February 2007 08:58 Go to previous message
David Streutker is currently offline  David Streutker
Messages: 34
Registered: June 2005
Member
On Feb 24, 7:59 pm, "stin.wang" <stin.w...@gmail.com> wrote:
> Hello everyone
>
> i use idl/envi to do some statistic works. first i read landsat tm
> into envi, calculate ndvi, and so on .
>
> my question is how can i use envi in batch mode to build mask form
> EVFs. It's certainly well know in ENVI , open a image and EVFs, click
> basic tool-mask-build mask. But every month i need do it again
> according different landsat tm image. It's really boring . I lookup in
> ENVI library routines for such routine. but i find only
> ENVI_MASK_APPLY_DOIT , which apply mask to a image. can anybody help
> me solve this problem?

I've never tried it, but after browsing through the help files, here's
the direction I would take:

1. Open and read the EVF file(s) using the functions ENVI_EVF_OPEN,
ENVI_EVF_READ_RECORD, etc.
2. Convert the geographical coordinates to image coordinates using
ENVI_CONVERT_FILE_COORDINATES.
3. Convert the EVF polygons to ROIs using ENVI_CREATE_ROI and
ENVI_DEFINE_ROI.
4. Create a mask image from the ROIs, possibly using
ENVI_ROI_TO_IMAGE_DOIT.
5. Mask your image using ENVI_MASK_APPLY_DOIT.

Hope that helps, and good luck.

-David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: find index
Next Topic: Re: READ issue

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

Current Time: Fri Oct 10 17:25:46 PDT 2025

Total time taken to generate the page: 0.16287 seconds