there is a discrepancy in the map coordinates of a force map from JPk files.
The selected force curve in the sample height map(piezo image) and the curve displayed in the analysis window(four plots) are different.
I am attaching an image of the PyFM GUI map coordinates and expected coordinates to recreate the expected force map.
The error in the current pattern is that code flips the odd columns instead of odd rows of data and to correct this error, the code at line 146 in loadjpkimg.py in the pyfmreader package should be tweaked.
piezoimg_ys = np.zeros((N,N))
for i in range(N):
piezoimg_ys[:,i] = piezoimg[:,i]
if i%2==1:piezoimg_ys[:,i] = (np.flip(piezoimg[:,i]))
hello Javi,
there is a discrepancy in the map coordinates of a force map from JPk files. The selected force curve in the sample height map(piezo image) and the curve displayed in the analysis window(four plots) are different. I am attaching an image of the PyFM GUI map coordinates and expected coordinates to recreate the expected force map.
The error in the current pattern is that code flips the odd columns instead of odd rows of data and to correct this error, the code at line 146 in loadjpkimg.py in the pyfmreader package should be tweaked.
piezoimg_ys = np.zeros((N,N)) for i in range(N): piezoimg_ys[:,i] = piezoimg[:,i] if i%2==1:piezoimg_ys[:,i] = (np.flip(piezoimg[:,i]))