Welcome to the BEAM Forum!

We encourage you to sign in our forum and participate in the BEAM community. The forum is maintained by the BEAM project team who will most likely answer your questions within 24 hours (except during common holidays) - if not done by other community members. Collaborate, share your knowledge and learn from other users!

If you don't find what you are looking for, please also consider the following external forums:

Combination View Flat View Tree View
Threads [ Previous | Next ]
wrong calculation of power function
I have a problem in beam when I try to use band by band math to evaluate a power fuction like that (520*reflec_6 ^2.6) for example, the resulting pixel values were 2 for all pixels
it alway gives me the integer value of the power
this problem faced me in all versions of beam that I downloaded
How can I solve this problem?
Flag Flag
RE: wrong calculation of power function
4/4/11 9:03 AM as a reply to Mohammed Ali Hamed.

the '^' character is not the power operation. It is the a bitwise XOR operation.
Please use the pow(@, @) function.
Your expression should look like the following:
1520 * pow(reflec_6, 2.6)

best wishes
Flag Flag