Need help to understand the meaning [message #93645] |
Tue, 20 September 2016 23:08  |
Suresh Negi
Messages: 28 Registered: August 2016
|
Junior Member |
|
|
pos = [0,0]
exp='BYTE((b1 EQ 1 AND b2 EQ 1 )*0 + BYTE(b1 EQ 1 AND b2 EQ 0 )*1)'
mathband_fid = [water_mask_fid, vegetation_mask_fid]
Please help me in understanding the exp.
Thank You.
|
|
|
Re: Need help to understand the meaning [message #93652 is a reply to message #93645] |
Wed, 21 September 2016 06:40  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
On Wednesday, September 21, 2016 at 2:08:04 AM UTC-4, Sanu wrote:
> pos = [0,0]
> exp='BYTE((b1 EQ 1 AND b2 EQ 1 )*0 + BYTE(b1 EQ 1 AND b2 EQ 0 )*1)'
> mathband_fid = [water_mask_fid, vegetation_mask_fid]
It's partly redundant. Probably the author wanted the option of looking one case where both B1 and B2 were true (=1), and another case where B1 is true and B2 is false.
|
|
|