PyMcaIO Package¶
APSMEDFileParser
Module¶
-
class
PyMca5.PyMcaIO.APSMEDFileParser.
APSMEDFileParser
(filename, sum_all=False)[source]¶ Bases:
object
-
class
PyMca5.PyMcaIO.APSMEDFileParser.
APSMEDScan
(data, scantype='MCA', identification='1.1', scanheader=None, labels=None, motor_values=None)[source]¶ Bases:
PyMca5.PyMcaIO.SpecFileAbstractClass.SpecFileAbstractScan
ArraySave
Module¶
-
PyMca5.PyMcaIO.ArraySave.
getHDF5FileInstanceAndBuffer
(filename, shape, buffername='data', dtype=<type 'numpy.float32'>, interpretation=None, compression=None)[source]¶
-
PyMca5.PyMcaIO.ArraySave.
openHDF5File
(name, mode='a', **kwargs)[source]¶ Open an HDF5 file.
Valid modes (like Python’s file() modes) are: - r Readonly, file must exist - r+ Read/write, file must exist - w Create file, truncate if exists - w- Create file, fail if exists - a Read/write if exists, create otherwise (default)
sorted_with is a callable function like python’s builtin sorted, or None.
-
PyMca5.PyMcaIO.ArraySave.
save2DArrayListAsASCII
(datalist, filename, labels=None, csv=False, csvseparator=';')[source]¶
-
PyMca5.PyMcaIO.ArraySave.
save2DArrayListAsMonochromaticTiff
(datalist, filename, labels=None, dtype=None)[source]¶
BAXSCSVFileParser
Module¶
-
class
PyMca5.PyMcaIO.BAXSCSVFileParser.
BAXSCSVScan
(data, scantype='MCA', identification='1.1', scanheader=None, labels=None, motor_values=None, point=False)[source]¶ Bases:
PyMca5.PyMcaIO.SpecFileAbstractClass.SpecFileAbstractScan
ConfigDict
Module¶
EDFStack
Module¶
EdfFile
Module¶
-
class
PyMca5.PyMcaIO.EdfFile.
EdfFile
(FileName, access=None, fastedf=None)[source]¶ Bases:
object
-
GetHeader
(Index)[source]¶ Returns dictionary with image header fields. Does not include the basic fields (static) defined by data shape, type and file position. These are get with GetStaticHeader method. Index: The zero-based index of the image in the file
-
GetPixel
(Index, Position)[source]¶ Returns double value of the pixel, regardless the format of the array Index: The zero-based index of the image in the file Position: Tuple with the coordinete (x), (x,y) or (x,y,z)
-
Fit2DChiFileParser
Module¶
-
class
PyMca5.PyMcaIO.Fit2DChiFileParser.
Fit2DChiFileParser
(filename)[source]¶ Bases:
PyMca5.PyMcaIO.SpecFileAbstractClass.SpecFileAbstractClass
HDF5Stack1D
Module¶
MEDFile
Module¶
-
class
PyMca5.PyMcaIO.MEDFile.
MEDFile
(filename=None)[source]¶ Bases:
object
MultiElement XRF Data File Format
MRCMap
Module¶
-
class
PyMca5.PyMcaIO.MRCMap.
MRCMap
(filename)[source]¶ Bases:
PyMca5.PyMcaCore.DataObject.DataObject
Class to read MRC files
It reads the spectra into a DataObject instance. This class info member contains all the parsed information. This class data member contains the map itself as a 3D array.
MarCCD
Module¶
-
class
PyMca5.PyMcaIO.MarCCD.
MccdHeader
(fd)[source]¶ Bases:
object
-
detectorHead
= ['detector_type', 'pixelsize_x', 'pixelsize_y']¶
-
fileHead
= [('filetitle', 128), ('filepath', 128), ('filename', 64), ('acquire_timestamp', 32), ('header_timestamp', 32), ('save_timestamp', 32), ('file_comments', 512)]¶
-
formatHead
= ['nfast', 'nslow', 'depth']¶
-
gonioHead
= ['xtal_to_detector', 'beam_x', 'beam_y', 'integration_time', 'exposure_time', 'readout_time', 'nreads', 'start_twotheta', 'start_omega', 'start_chi', 'start_kappa', 'start_phi', 'start_delta', 'start_gamma', 'start_xtal_to_detector', 'end_twotheta', 'end_omega', 'end_chi', 'end_kappa', 'end_phi', 'end_delta', 'end_gamma', 'end_xtal_to_detector', 'rotation_axis', 'rotation_range', 'detector_rotx', 'detector_roty', 'detector_rotz']¶
-
OlympusCSVFileParser
Module¶
OmnicMap
Module¶
-
class
PyMca5.PyMcaIO.OmnicMap.
OmnicMap
(filename)[source]¶ Bases:
PyMca5.PyMcaCore.DataObject.DataObject
Class to read OMNIC .map files
It reads the spectra into a DataObject instance. This class info member contains all the parsed information. This class data member contains the map itself as a 3D array.
PilatusCBF
Module¶
- Authors: Jerome Kieffer, ESRF
- email:jerome.kieffer@esrf.fr
Cif Binary Files images are 2D images written by the Pilatus detector and others. They use a modified (simplified) byte-offset algorithm.
-
class
PyMca5.PyMcaIO.PilatusCBF.
CIF
(_strFilename=None)[source]¶ Bases:
dict
This is the CIF class, it represents the CIF dictionnary as a a python dictionnary thus inherits from the dict built in class.
-
BINARY_MARKER
= '--CIF-BINARY-FORMAT-SECTION--'¶
-
BLANK
= [' ', '\t', '\r', '\n', '\r\n', '\n\r']¶
-
EOL
= ['\r', '\n', '\r\n', '\n\r']¶
-
static
LoopHasKey
(loop, key)[source]¶ Returns True if the key (string) existe in the array called loop
-
START_COMMENT
= ['"', "'"]¶
-
exists
(sKey)[source]¶ Check if the key exists in the CIF and is non empty. @param sKey: CIF key @type sKey: string @param cif: CIF dictionnary @return: True if the key exists in the CIF dictionnary and is non empty @rtype: boolean
-
existsInLoop
(sKey)[source]¶ Check if the key exists in the CIF dictionnary. @param sKey: CIF key @type sKey: string @param cif: CIF dictionnary @return: True if the key exists in the CIF dictionnary and is non empty @rtype: boolean
-
static
isAscii
(_strIn)[source]¶ Check if all characters in a string are ascii,
@param _strIn: input string @type _strIn: python string @return: boolean @rtype: boolean
-
loadCHIPLOT
(_strFilename)[source]¶ Load the powder diffraction CHIPLOT file and returns the pd_CIF dictionnary in the object @param _strFilename: the name of the file to open @type _strFilename: string @return: the CIF object corresponding to the powder diffraction @rtype: dictionnary
-
loadCIF
(_strFilename, _bKeepComment=False)[source]¶ Load the CIF file and returns the CIF dictionnary into the object @param _strFilename: the name of the file to open @type _strFilename: string @param _strFilename: the name of the file to open @type _strFilename: string @return the
-
RTXMap
Module¶
-
class
PyMca5.PyMcaIO.RTXMap.
RTXMap
(filename)[source]¶ Bases:
PyMca5.PyMcaCore.DataObject.DataObject
Class to read ARTAX .rtx files
SPXFileParser
Module¶
-
class
PyMca5.PyMcaIO.SPXFileParser.
SPXFileParser
(filename)[source]¶ Bases:
PyMca5.PyMcaIO.SpecFileAbstractClass.SpecFileAbstractClass
SRSFileParser
Module¶
-
class
PyMca5.PyMcaIO.SRSFileParser.
SRSScan
(data, scantype='MCA', identification='1.1', scanheader=None, labels=None, motor_values=None, point=False)[source]¶ Bases:
PyMca5.PyMcaIO.SpecFileAbstractClass.SpecFileAbstractScan
SpecFileAbstractClass
Module¶
TextImageStack
Module¶
ThermoEMSFileParser
Module¶
TiffIO
Module¶
TiffStack
Module¶
-
class
PyMca5.PyMcaIO.TiffStack.
TiffArray
(filelist, shape, dtype, imagestack=True)[source]¶ Bases:
object
-
dtype
¶
-
shape
¶
-
size
¶
-