diff options
author | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-02-26 13:11:22 +0000 |
---|---|---|
committer | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-02-26 13:11:22 +0000 |
commit | 76cd15aa8de3f6c78960314ed5e40849be8fd081 (patch) | |
tree | cb95a6e31c23a9fbe2421a18b544cdee2fee61dd /src/mrc.c | |
parent | 4feae844d4782f98eb879e31073fa892bca82baf (diff) |
Honour voltage from MRC header if present
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@11 bf6ca9ba-c028-0410-8290-897cf20841d1
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; |