As I am new to the whole "python" thing I face the following problems :
I have a data file .npy shaped (77,77,20). I want to extract from this files 25 rows & 25 columns and get a new matrix shaped like (25,25,20). The rows and columns aren't the first 25 nor the last 25. I created 2 variable "col_idx" & "row_idx" containing the number of the 25 rows & columns but I can't extract them from my data. Any suggestion on how to proceed ?
I want to save using numpy.savetxt this (25,25,20) matrix in csv so that it can be readable. I may have found someting tricky for this part on stackoverflow but as I just begin python I don't really understand it.
I would gladly take any advice on how to code this. Thanks !