pycroscopy will eventually be replaced by
which only extract information from instrument-specific data files and will not write data into any data files, unlike
Reader classes will be hosted in the
ScopeReaders package instead of
Translatorsto extract data and metadata from files (often measurement data stored in instrument-generated proprietary file formats) and write them into Universal Spectroscopy and Imaging Data (USID) HDF5 files.
You can write your own
Translatoreasily by following this example on our sister project’s documentation.
Below is a list of
Translatorsalready available in pycroscopy to translate data.
These translators can be accessed via
We tend to add new
Translatorsto this list frequently.
We understand that this list does not (yet) comprehensively cover all modalities and instrument manufacturers, but we are working towards a comprehensive set of translators.
We only have access to a small subset of all available instruments and data which limits our ability to add more translators.
Given that this is a community-driven effort, you can help by providing:
Example datasets (scans, force curves, spectra, force-maps, spectra acquired on grids of locations, etc.)
Links to existing packages that have figured out how to extract this data. (More often than not, there are researchers who have put up their code)
Your own code for extracting data. We invite you to come onboard and add your tools to the package.
Guidance in correctly extracting the metadata (parameters) and data
Your time. We are interested in collaborating with you to develop translators.
We are also interested in collaborating with instrument manufacturers to integrate pycroscopy into instrumentation or analysis software.
We are working on writing translators to popular open-source software / formats such as
Let’s translate an Igor Binaray Wave (ibw) file to a USID h5 file, and inspect the contents. Only the translator changes for different file formats, all other steps should remain the same.
import h5py import pyUSID as usid import pycroscopy as px #path to file you wish to translate file_path = r'/my_folder/a10.ibw' #Do the translation translator = px.io.translators.IgorIBWTranslator() #Instantiating IgorIBW translator. #Note: Change translator depending on your input file format h5_path = translator.translate(file_path) #translates, and then returns path of translated file #Open the translated file h5_f = h5py.File(h5_path, 'r+') #Inspect the h5 file usid.hdf_utils.print_tree(h5_f) #Get all the main datasets main_dsets = usid.hdf_utils.get_all_main(h5_f) #Print out the list of main datasets print(main_dsets)
Generic File Formats¶
PNG, TIFF images -
Movie (frames of) represented by a stack of images -
numpy data in memory -
GwyddionTranslator- work in progress
Scanning Transmission Electron Microscopy (STEM)¶
Nion Company - NData -
One View -
Digital Micrograph DM3 and DM4 files -
TIFF image stack for 4D STEM -
Scanning Tunnelling Microscopy (STM)¶
Omicron STMs - Scanning Tunnelling Spectroscopy -
Nanonis Controllers -
Atomic Force Microscopy (AFM)¶
Asylum Research - Igor IBWs for images and force curves -
Asylum Research -
Bruker / Veeco / Digital Instruments - images, force curves, force maps -
Molecular Vista - Photoinduced Force Microscope -
Nanonis Controllers -