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

Home » Public Forums » archive » Re: changing the pixel values in raster
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
Re: changing the pixel values in raster [message #66622] Mon, 01 June 2009 13:11
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
copper wrote:
> Hi Everyone,
> I am trying to change the pixel value in a raster to assign new pixel
> values in ENVI. I understand that when importing a raster with grey
> scale values into ENVI they correspond to an integer 0-255. But is
> there a way to have the pixel value range changed to say 0-17? Pleae
> let me know. Thanks!
> Alexandra

It is fairly easy to program it. Read the image, scale the values, save
the image and update the header file.

Now, if you just have one image, you can do it within Envi. Use the math
band.. newMap = oldMap / 255 * 17

Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: POLYFILL
Next Topic: polyfill

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

Current Time: Wed Oct 08 17:06:37 PDT 2025

Total time taken to generate the page: 0.00570 seconds