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

Home » Public Forums » archive » Re: Convert pixel values
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: Convert pixel values [message #42401 is a reply to message #42400] Mon, 07 February 2005 21:41 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> I thought this was a simple problem: I need to convert all pixels with
> a value of -32767 to a value of 0 in an image with 175 bands. Becoming
> nightmare! Is there a simple way to do it?

; arr is your array
arr[where(arr eq -32767)] = 0

-Mike
[Message index]
 
Read Message
Read Message
Previous Topic: Convert pixel values
Next Topic: Re: MAP_SET vs MAP_PROJ_*

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

Current Time: Sat Oct 11 07:56:52 PDT 2025

Total time taken to generate the page: 2.15856 seconds