
// Script function: Check if the front-most image is an 1D image or not.

// Unless named starting with GlobalSino, EM, My, Self, the function commands are defined 
//by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html


image GlobalSinoImage:=Getfrontimage()
number EMxsize, EMysize
Getsize(GlobalSinoImage, EMxsize, EMysize)
if(EMysize>1)
{
Showalert("Ensure the front-most image is an 1D image.",2)
exit(0)
}
else
Showalert("The front-most image is an 1D image.",2)
exit(0)