// Set JOEL SEM scale and display acquisition metadata using txt Metadata // Author: Zhou XU // at Monash Centre for Electron Microscopy // Windows 10 Enterprise Ver. 1803 // ImageJ ver. 1.52g // Created on 2018 Sep 07 // Modified on 2018 Oct 01 path = getDirectory("image"); if (path=="") exit ("path not available"); name = getInfo("image.filename"); if (name=="") exit ("name not available"); id = path + name; txtID = replace(id, ".tif", ".txt"); txtID = replace(txtID, ".jpg", ".txt"); lineseparator = ",\n\t"; cellseparator = " "; lines=split(File.openAsString(txtID), lineseparator); for (i=0; i