SciFiReaders.readers.microscopy.spm.afm.pifm.PiFMReader#
- class SciFiReaders.readers.microscopy.spm.afm.pifm.PiFMReader(file_path, *args, **kwargs)[source]#
Bases:
ReaderClass that reads images, spectrograms, point spectra and associated ancillary data sets from an Anfatec scan structure.
- Parameters:
file_path (str) – Path to the file that needs to be read
Notes
This method will check to make sure that the provided file_path is indeed a string and a valid file path.
Consider calling
can_read()within__init__()for validating the provided file
- Raises:
Methods
can_readWrites a new HDF5 file with the translated data
writes full path, directory, and file name as attributes to class
make_datasetsmake_dimensionsreads the scan parameters and writes them to a dictionary
reads spectrogram, image, and spectra file descriptions and stores all to dictionary where the key:value pairs are filename:[all descriptors]
reads images and saves to dictionary
reads all point spectra and saves to dictionary
reads spectrograms, associated spectral values, and saves them in two dictionaries
- create_h5(append_path='', overwrite=False)[source]#
Writes a new HDF5 file with the translated data
- append_pathstring (Optional)
h5_file to add these data to, must be a path to the h5_file on disk
- overwritebool (optional, default=False)
If True, will overwrite an existing .h5 file of the same name
- read()[source]#
- Parameters:
file_path (String / unicode) – Absolute path of the .ibw file
verbose (Boolean (Optional)) – Whether or not to show print statements for debugging
- Returns:
sidpy.Dataset – Image layers are saved as separate Dataset objects
- Return type:
List of sidpy.Dataset objects.