/PyMDT

A python module to open NT-MDT Nova Px files

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Just fixing what I need

Just wanted to fix this numpy reshape issue with the MDA 2D files since I clone this repo in colab and don't want to replace the file there.

Status: Archived

This repository has been archived and is no longer maintained.

status: inactive

NT-MDT Python library

What is it ?

This library is a tentative to read the *.mdt files generated by Nova-PX software used but the NT-MDT AFM/MFM/Raman instrument. However, for the moment it is really in an alpha state.

Right now it can :
  • read the header of the file
  • read the header of any standard frame
  • (experimental) read the text frame
  • read the MDA frame
    • 2 dimensions, 1 mesurand the AFM/MFM frame (2D/color map)
    • 1 dimension, 1 mesurand (or 2 mesurands) curve, except if the x axis is stored in the XML metadata (in this case put an arbitrary x axis)
Next I will add :
  • a nice package with __init__.py and stuff like that -- low priority
  • support of the STM frames (MDT_FRAME_SCANNED)
  • maybe support of the new curve frame MDT_FRAME_CURVES_NEW (but I don’t have any file to work with)
  • put a doc and some examples
I will most likely not add
  • support the old 1D MDA curve where the x-coordinates are hid in the XML metadata (come on, why somebody would hide data information in the metadata)
I will not add
  • Support for old MDA frame because it is not really used anymore.
  • Support for the palette frame (I don’t know the specs and I clearly don’t want spending time on something that nobody use...)

Prerequisites

  • Python >= 3.6
  • numpy >= 1.13.1

Authors

Sylvain Martin for the python code. The file specifications are from Gwyddion a software for SPM (scanning probe microscopy) data visualization and analysis. And more specifically from the nt-mdt file module nt-mdt.c written by David Necas (Yeti), Petr Klapetek

License

This project is licensed under the GPL Licence - see the LICENSE.md file for details

NT-MDT and Nova-PX are trademarked by NT-MDT SI

Acknowledgments

David Necas (Yeti) and Petr Klapetek for written the Gwyddion nd-mdt module