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

Home » Public Forums » archive » reclass in ENVI or IDL
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
reclass in ENVI or IDL [message #30543] Fri, 03 May 2002 08:17 Go to next message
jdvona is currently offline  jdvona
Messages: 6
Registered: April 2002
Junior Member
Hi,
Forgive the second posting as the first appeared to have been lost. I
need to reclass a single band scene to a binary image to use as a mask
on a Landsat TM scene. I'm not seeing widgets in ENVI that enable
user-defined reclassification of pixels; however, it appears that
using Band Math widget along with a custom function that I could
accomplish the task.

The reclass function requires very simple decision criteria. For
every pixel in the image < .15 assign it a 1, else it receives a 0.
Any suggestions or snippets would be helpful to this pilgrim in the
IDL world.
Cheers,

John
Re: reclass in ENVI or IDL [message #30620 is a reply to message #30543] Mon, 06 May 2002 04:23 Go to previous message
cjengo is currently offline  cjengo
Messages: 28
Registered: June 1999
Junior Member
jdvona@yahoo.com (John) wrote in message news:<844e4579.0205030717.50d4acd5@posting.google.com>...
> Hi,
> Forgive the second posting as the first appeared to have been lost. I
> need to reclass a single band scene to a binary image to use as a mask
> on a Landsat TM scene. I'm not seeing widgets in ENVI that enable
> user-defined reclassification of pixels; however, it appears that
> using Band Math widget along with a custom function that I could
> accomplish the task.
>
> The reclass function requires very simple decision criteria. For
> every pixel in the image < .15 assign it a 1, else it receives a 0.
> Any suggestions or snippets would be helpful to this pilgrim in the
> IDL world.
> Cheers,
>
> John

You can do this and much more with the masking tool (Basic Tools >
Masking > Build Mask).

Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: weighted least squares fit with error in both y and x
Next Topic: Mac OS X

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

Current Time: Wed Oct 08 09:14:04 PDT 2025

Total time taken to generate the page: 0.00559 seconds