Comments (2)
So this is a known limitation, where the correct_
functions only work on square arrays. I don't have some raw data to test with atm, but can you try this and see if it works correctly
import numpy as np
import pySPM
filename = 'testfile.spm'
scan = pySPM.Bruker(filename)
topoB = scan.get_channel("Height Sensor")
# the correct lines logic
topoB.pixels -= np.tile(np.mean(topoB.pixels, axis=1).T, (topoB.pixels.shape[1], 1)).T
# check if the result is correct
topoB.show(pixels=True)
from pyspm.
Hello,
your suggestion worked perfectly and solves the problem for me.
Thank you for the solution and the qucik reply!
from pyspm.
Related Issues (20)
- "li" variable not defined in ITM.py HOT 6
- reuse file format reader in afmformats HOT 3
- Defining regions of interest (ROI) HOT 2
- Nonsquare scans Bruker files (.spm) HOT 5
- SurfaceLab7 .itax & .itm file support HOT 8
- lower case augment support for get_channel() struct.error: unpack requires a buffer of 369664 bytes HOT 1
- Error when opening an ITM File generated by Surface Lab 7 HOT 2
- Bruker spm format: request for explanantion of overall scale computation HOT 1
- Question: basic plotting code HOT 1
- Controlling image axix label size font type..etc HOT 1
- Unable to load an approach curve from Bruker Icon HOT 5
- Unable to read a SXM file from Nanonis HOT 11
- get_channel does not work for specific afm channel - value error HOT 11
- Bruker get_channel floating point parsing error HOT 6
- Need Engage X and Y Pos info HOT 2
- get_channel("Height") issue HOT 12
- show_summary can't find funit HOT 1
- Example files not available HOT 2
- add_scale(1e-9) gives wrong scalebar HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyspm.