-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Incorect scaling of JPK image files #116
Comments
Some extra information. The image below shows the output of 9 channels from the sample jpk used in examples and testing. When compared with other software that reads Additionally phase can not be processed due to a key error when reading the scaling type. That gives this error message:
Through introducing a function that can accurately read the channel and scaling data this can be corrected and the output matches the values from the other AFM image processing programmes. |
Hi @derollins thanks for letting us know about this. Reading through it sounds as though you've worked out how to solve this. If so would you be able to make a Pull Request so we could include it please? To do so you'd have to make a fork of the Apologies if I've got the wrong end of the stick and if you want any more help on how to do this please let me know. |
No that's the help I was hoping for @ns-rse . I'll fork the repository with my fix and make a pull request. |
Brilliant, thanks @derollins , shout if you have any problems on that side of things. 👍 |
Describe the bug
When loading JPK file the raw data needs to be scaled and offset, the values of these offsets are found in the tags of the channel pages but there are multiple scaling factors currently AFMReader can choose the incorrect scaling factor leading to incorrect z values.
I have fixed this by seperating out the different scaling factors into their slots and selecting the 'default' slot that was used within the instrument.
Copy of the output
There is no error, the z values of loaded images are just incorrect.
To Reproduce
No response
AFMReader Version
0.1.0
Python Version
3.11
Operating System
Windows
Python Packages
No response
The text was updated successfully, but these errors were encountered: