I have this code that I am looking over and commenting (I made some improvements to it but I have not really looked in-depth at the math and creation part)
Declaration :
percentile = ((nextImage - BaselineMin) / (BaselineMax - BaselineMin)) * 100
Where nextImage, BaselineMin and BaselineMax are all 720x600 numpy arrays.
Essentially, out of this, I should get another 720x600 Numpy arry
Calling
percentile[:, :][percentile[:, :] == 0] = -999
I am interested to know what each part does. Me and a co-worker looked at it and tried to replicate it with a sample 2x2 and 3x3 array and all we got is []. Alternatively, we got a flattened list, but could not replicate it.
This has to do with array slicing, but i've never seen anything like this. I have taken a look at the other questions around here, but none of them have anything like this.
percentile[percentile == 0] = -999.