hyperspy.io_plugins.msa module

hyperspy.io_plugins.msa.US_MONTHS_D2A = {'01': 'JAN', '02': 'FEB', '03': 'MAR', '04': 'APR', '05': 'MAY', '06': 'JUN', '07': 'JUL', '08': 'AUG', '09': 'SEP', '10': 'OCT', '11': 'NOV', '12': 'DEC'}
hyperspy.io_plugins.msa.US_MONTH_A2D = {'APR': '04', 'AUG': '08', 'DEC': '12', 'FEB': '02', 'JAN': '01', 'JUL': '07', 'JUN': '06', 'MAR': '03', 'MAY': '05', 'NOV': '11', 'OCT': '10', 'SEP': '09'}
hyperspy.io_plugins.msa.default_extension = 0
hyperspy.io_plugins.msa.description = ''
hyperspy.io_plugins.msa.file_extensions = ('msa', 'ems', 'mas', 'emsa', 'EMS', 'MAS', 'EMSA', 'MSA')
hyperspy.io_plugins.msa.file_reader(filename, encoding='latin-1', **kwds)
hyperspy.io_plugins.msa.file_writer(filename, signal, format=None, separator=', ', encoding='latin-1')
hyperspy.io_plugins.msa.format_name = 'MSA'
hyperspy.io_plugins.msa.full_support = False
hyperspy.io_plugins.msa.keywords = {'AZIMANGLE': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.Detector.EDS.azimuth_angle'}, 'BEAMDIAM': {'dtype': <class 'float'>, 'mapped_to': None}, 'BEAMKV': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.beam_energy'}, 'CHOFFSET': {'dtype': <class 'float'>, 'mapped_to': None}, 'COLLANGLE': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.Detector.EELS.collection_angle'}, 'COMMENT': {'dtype': <class 'str'>, 'mapped_to': None}, 'CONVANGLE': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.convergence_angle'}, 'DATATYPE': {'dtype': <class 'str'>, 'mapped_to': None}, 'DATE': {'dtype': <class 'str'>, 'mapped_to': None}, 'DWELLTIME': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.Detector.EELS.dwell_time'}, 'EDSDET': {'dtype': <class 'str'>, 'mapped_to': 'Acquisition_instrument.TEM.Detector.EDS.EDS_det'}, 'ELEVANGLE': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.Detector.EDS.elevation_angle'}, 'ELSDET': {'dtype': <class 'str'>, 'mapped_to': None}, 'EMISSION': {'dtype': <class 'float'>, 'mapped_to': None}, 'FORMAT': {'dtype': <class 'str'>, 'mapped_to': None}, 'FWHMMNKA': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.Detector.EDS.energy_resolution_MnKa'}, 'INTEGTIME': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.Detector.EELS.exposure'}, 'LIVETIME': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.Detector.EDS.live_time'}, 'MAGCAM': {'dtype': <class 'float'>, 'mapped_to': None}, 'NCOLUMNS': {'dtype': <class 'float'>, 'mapped_to': None}, 'NPOINTS': {'dtype': <class 'float'>, 'mapped_to': None}, 'OFFSET': {'dtype': <class 'float'>, 'mapped_to': None}, 'OPERMODE': {'dtype': <class 'str'>, 'mapped_to': None}, 'OWNER': {'dtype': <class 'str'>, 'mapped_to': None}, 'PROBECUR': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.beam_current'}, 'REALTIME': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.Detector.EDS.real_time'}, 'SIGNALTYPE': {'dtype': <class 'str'>, 'mapped_to': 'Signal.signal_type'}, 'SOLIDANGLE': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.Detector.EDS.solid_angle'}, 'TACTLYR': {'dtype': <class 'float'>, 'mapped_to': None}, 'TALWIND': {'dtype': <class 'float'>, 'mapped_to': None}, 'TAUWIND': {'dtype': <class 'float'>, 'mapped_to': None}, 'TBEWIND': {'dtype': <class 'float'>, 'mapped_to': None}, 'TBNWIND': {'dtype': <class 'float'>, 'mapped_to': None}, 'TDEADLYR': {'dtype': <class 'float'>, 'mapped_to': None}, 'TDIWIND': {'dtype': <class 'float'>, 'mapped_to': None}, 'THCWIND': {'dtype': <class 'float'>, 'mapped_to': None}, 'THICKNESS': {'dtype': <class 'float'>, 'mapped_to': 'Sample.thickness'}, 'TIME': {'dtype': <class 'str'>, 'mapped_to': None}, 'TITLE': {'dtype': <class 'str'>, 'mapped_to': 'General.title'}, 'TPYWIND': {'dtype': <class 'float'>, 'mapped_to': None}, 'VERSION': {'dtype': <class 'str'>, 'mapped_to': None}, 'XLABEL': {'dtype': <class 'str'>, 'mapped_to': None}, 'XPERCHAN': {'dtype': <class 'float'>, 'mapped_to': None}, 'XPOSITION': {'dtype': <class 'float'>, 'mapped_to': None}, 'XTILTSTGE': {'dtype': <class 'float'>, 'mapped_to': 'Acquisition_instrument.TEM.Stage.tilt_alpha'}, 'XUNITS': {'dtype': <class 'str'>, 'mapped_to': None}, 'YLABEL': {'dtype': <class 'str'>, 'mapped_to': None}, 'YPOSITION': {'dtype': <class 'float'>, 'mapped_to': None}, 'YTILTSTGE': {'dtype': <class 'float'>, 'mapped_to': None}, 'YUNITS': {'dtype': <class 'str'>, 'mapped_to': None}, 'ZPOSITION': {'dtype': <class 'float'>, 'mapped_to': None}}
hyperspy.io_plugins.msa.parse_msa_string(string, filename=None)

Parse an EMSA/MSA file content.

Parameters
  • string (string or file object) – It must complain with the EMSA/MSA standard.

  • filename (string or None) – The filename.

  • Returns

  • --------

  • file_data_list (list) – The list containts a dictionary that contains the parsed information. It can be used to create a :class:BaseSignal using :func:hyperspy.io.dict2signal.

hyperspy.io_plugins.msa.writes = [(1, 0)]