The SerialEM Script Repository

Random Grid Sampler

Edit Delete


Name Random Grid Sampler
Category Other Data Acquisition
Language SerialEM Scripting
Description Acquires and saves images on "random" positions all over a grid. Originally used to assess contamination on cryo-TEM grids transferred in different ways without bias.
Author Guenter Resch

Version History

Version 1.0.0


Upload date April 15, 2017
Download count 431
SerialEM version ≥ 3.6




$RangeX/$RangeY determine the total range (in um) in X and Y images are acquired from, centered around 0.0/0.0

$SampleX/$SampleY is the number of images taken along the X and Y axis

$ThresholdCounts is the minimum number of counts in a Trial images for a Record image to be acquired and saved


This code can be shared and adapted under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License (