[Help] Create Logical Expression(Math) Band

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
phamicha
Posts: 6
Joined: Mon Aug 14, 2017 9:10 pm America/New_York
Answers: 0

[Help] Create Logical Expression(Math) Band

by phamicha » Mon Nov 13, 2017 8:58 pm America/New_York

Hi all,
I have a problem related to Create Logical Expression(Math) Band.
I was used formulation TSS = 1.7532*E^(204.26*Rrs_660) by Create Logical Expression(Math) Band function. The result show only unique value equal 2.
Please help me to explain what is wrong and tell me how to fix this problem?
The below images show my problem, and I am using GOCI data.
Thank you.


Tags:

OB SeaDAS - knowles
Subject Matter Expert
Subject Matter Expert
Posts: 269
Joined: Mon Apr 07, 2008 4:40 pm America/New_York
Answers: 0

[Help] Create Logical Expression(Math) Band

by OB SeaDAS - knowles » Wed Nov 15, 2017 12:09 pm America/New_York

The bandMath expression  TSS = 1.7532*E^(204.26*Rrs_660)  is not doing what you think it is suppose to do.  You are confusing the caret operator "^", which is actually doing a bitwise exclusive-OR on two integers, with the a formatting style of writing "^" to represent the power notation.

To formulate your expression, use either:
TSS = 1.7532*exp(204.26*Rrs_660)
or
TSS = 1.7532*pow(E,(204.26*Rrs_660))

Danny

phamicha
Posts: 6
Joined: Mon Aug 14, 2017 9:10 pm America/New_York
Answers: 0

[Help] Create Logical Expression(Math) Band

by phamicha » Wed Nov 15, 2017 8:38 pm America/New_York

Thank you very much for your help.

Post Reply