emcSetGridAlignments
NAME
emcSetGridAlignments - Define the current
alignment of the specimen grid
SYNOPSIS
#include "emc.h"
int emcSetGridAlignments(EM *em, int x0, int y0, double theta, double delta);
DESCRIPTION
emcSetGridAlignments() defines the
current orientation of the specimen grid. This function will typically be called by an
application which guides the EM operator through the specimen loading process. One of the
tasks in this process is identifying the grid origin (x0,y0), angle of
rotation (theta), distance between grid squares (delta). The procedure
generally involves identifying the origin grid square and the logical (1,1) grid square.
- *em
- points to an
EM control and communications structure that
was returned by the emcOpen() call.
- units
- the units the values are expressed in:
UNCALIBRATED_UNITS |
Native goniometer positioning units |
ANGSTOM_UNITS |
Units are measured in angstroms |
NANOMETER_UNITS |
Units are measured in nanometers |
MICRON_UNITS |
Units are measured in microns |
PIXEL_UNITS |
Units are measured in pixels in current camera |
- x0
- X-axis position of logical origin of specimen grid
- y0
- Y-axis position of logical origin of specimen grid
- theta
- Angle of rotation (in radians)
- delta
- Distance to adjacent grid square
DIAGNOSTICS
EMC_OK (0) |
Success |
EMC_ERROR (-1) |
Error |
EMC_BADUNITS (-101) |
Invalid units specified for this request |
EMC_NULLPTR (-111) |
Unexpected NULL pointer encountered |
Page 50 of 54 