Read a Nanonis spectroscopy .dat file into a xarray Dataset
Project description
Read Nanonis spectroscopy .dat files into xarray Datasets
nanonis_xarray is a Python module to read spectroscopy measurements saved in text
format (.dat) by a Nanonis Mimea
SPM control system from SPECS Surface Nano Analysis GmbH.
The data is read into a xarray.Dataset, where each measured quantity, such as tunnelling current or AFM oscillation amplitude, is a xarray.DataArray with up to three dimensions:
- The independent variable of the measurement, such as bias voltage or tip z position;
- The sweep number, if the measurement has been repeated multiple times;
- The sweep direction (forward or backward), if the independent variable has been swept in both directions.
It becomes then easy to e.g. plot the average of one measured channel in the forward direction:
from matplotlib import pyplot as plt
from nanonis_xarray import read_dat
data = read_dat("tests/data/z.dat")
fig, ax = plt.subplots()
data["current"].mean(dim=["sweep"]).sel(direction="fw").plot()
Work in progress
This library is under development: expect breaking changes. I do not plan to support the Nanonis binary formats (.sxm, .3ds), which can be read by similar projects:
nanonispy2xarray-nanonis- ... and many more.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nanonis_xarray-0.1.1.tar.gz.
File metadata
- Download URL: nanonis_xarray-0.1.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6985345dc51407077261bff88ee6bfa8b5a011245ebe0431e7de7b71235cff9
|
|
| MD5 |
6a06d4e898411fec4a11f5e4328fc904
|
|
| BLAKE2b-256 |
c714c718f9fda67b1b07d876df69b923b27d57611b6bec08a036583836a7b14b
|
Provenance
The following attestation bundles were made for nanonis_xarray-0.1.1.tar.gz:
Publisher:
publish.yaml on angelo-peronio/nanonis-xarray
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nanonis_xarray-0.1.1.tar.gz -
Subject digest:
b6985345dc51407077261bff88ee6bfa8b5a011245ebe0431e7de7b71235cff9 - Sigstore transparency entry: 352386617
- Sigstore integration time:
-
Permalink:
angelo-peronio/nanonis-xarray@0fd8bccffdcf721ec69472043a0c706528778e1a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/angelo-peronio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@0fd8bccffdcf721ec69472043a0c706528778e1a -
Trigger Event:
push
-
Statement type:
File details
Details for the file nanonis_xarray-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nanonis_xarray-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ad37ea514165f98fe0b839403bc92362fc96908e9af5d975e760a0bc631a2d6
|
|
| MD5 |
1c1da8b27711541198cfc5d21748cd5a
|
|
| BLAKE2b-256 |
9f4931b1243479cf8763854245ad34d90f13af8e1bfe79dc0c3a9790603aa4d9
|
Provenance
The following attestation bundles were made for nanonis_xarray-0.1.1-py3-none-any.whl:
Publisher:
publish.yaml on angelo-peronio/nanonis-xarray
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nanonis_xarray-0.1.1-py3-none-any.whl -
Subject digest:
4ad37ea514165f98fe0b839403bc92362fc96908e9af5d975e760a0bc631a2d6 - Sigstore transparency entry: 352386642
- Sigstore integration time:
-
Permalink:
angelo-peronio/nanonis-xarray@0fd8bccffdcf721ec69472043a0c706528778e1a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/angelo-peronio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@0fd8bccffdcf721ec69472043a0c706528778e1a -
Trigger Event:
push
-
Statement type: