Show all scripts

EMSA spectrum to Tabbed Text

Category: Data Import/Export
Description: Script to convert Noran System 6 files (EMSA format) into tabbed text files. The Noran System 6 format consists of a text file with a series of headers. These are prefaced by a #. The script ignores lines which start thusly. The spectral data is comma delimited and has no hashes in front of it and is in the form of keV then intensity eg 1.246, 123,CR where CR is a carriage return. The script copies each line of the data converting the first comma to tab and deleting the second comma and the carriage return(the script adds a CR back in so that the new format is 1.246TAB 123CR. The file is saved in the same directory as the source file. It is saved as a text file with '(TabTxt).txt appended to the filename. This file can be directly read into Excel, Kaleidagraph etc.
Comments: EMSA files can be directly imported into DigitalMicrograph by "drag&drop" if they have the extension *.msa
Script version: 1.0
DM/GMS version: 3.11.0
Script written as a function: No
Source: Show code
Download Source Code: Download
Download Zip File: Download