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

Home » Public Forums » archive » Re: Bits & Bytes
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: Bits & Bytes [message #57896 is a reply to message #57895] Tue, 08 January 2008 04:29 Go to previous message
Ingo von Borstel is currently offline  Ingo von Borstel
Messages: 54
Registered: September 2006
Member
Hi,
> I need to apply the status map on the NDVI data, because I need to
> flag cloud and snow pixels.

> From MSB to LSB

> Bit NR 7 (MSB): radiometric quality for B0 coded as 0 if bad and 1 if
> good
(...)

So, I assume you have a complete map where the single bytes contain
these data. In order to extract whether the n-th bit is set do something
along this line

icemap = (statusmap and 2^n) GE 1

The result will be a byte array which contains one, if the n-th bit is
set and 0 if it isn't set. I guess you want to use n=2

Regards,
Ingo

--
Ingo von Borstel <newsgroups@planetmaker.de>
Public Key: http://www.planetmaker.de/ingo.asc

If you need an urgent reply, replace newsgroups by vgap.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Bits & Bytes
Next Topic: Re: Window IDLDE 7.0 text copy idiosyncrasy

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

Current Time: Sat Oct 11 08:42:38 PDT 2025

Total time taken to generate the page: 0.64739 seconds