Band math not working?

I have calculated the modulus of an element from the covariance matrix (C12). However, I’m only getting zeros (and NaN) as a result. See the snip below for an illustration.
Left: C12_imag
Center: C12_mod (you can see also the formula I used)
Right: C12_real

On the Pixel info tab you can see an example, that should have returned 0.00367 and not 0.0

The ^ operator means bitwise XOR Band Maths of SNAP.
If you want to raise a value A to the power of B use the pow() method.
Your expression should be
sqrt(pow(C12_real,2) + pow(C12_imag,2))

See the Band Maths Expression Editor help page.

2 Likes