diff options
Diffstat (limited to 'src/mrc.c')
-rw-r--r-- | src/mrc.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -21,6 +21,7 @@ #include "imagedisplay.h" #include "itrans.h" #include "reflections.h" +#include "utils.h" int mrc_read(ControlContext *ctx) { @@ -111,7 +112,11 @@ int mrc_read(ControlContext *ctx) { printf("Image #%3i: tilt=%f omega=%f L=%f\t", i, ext[i].a_tilt, ext[i].tilt_axis, ext[i].magnification); ctx->camera_length = ext[i].magnification; - ctx->lambda = 2.51e-12; /* 200kV. Fudged until Max puts the HT voltage in the MRC headers */ + if ( ext[i].voltage == 0 ) { + ctx->lambda = lambda(200000); + } else { + ctx->lambda = lambda(1000*ext[i].voltage); + } ctx->omega = ext[i].tilt_axis; ctx->pixel_size = ext[i].pixel_size; |