aboutsummaryrefslogtreecommitdiff
path: root/src/mrc.c
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-03-31 15:00:56 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-03-31 15:00:56 +0000
commitf72af885e7beb97127e4300d635ab156b4336094 (patch)
treefb755678de8654eb58dc23f96cd9ef601aa2ed0a /src/mrc.c
parent9f50a7efb9e16373c8f1d03abf6ad96235045139 (diff)
More fussiness:
Tidy itrans-stat.c Display units for pixel_size Display appropriate peak search algorithm for cache files (i.e. none) Tweak credits git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@19 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/mrc.c')
-rw-r--r--src/mrc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mrc.c b/src/mrc.c
index a01809c..f09c79e 100644
--- a/src/mrc.c
+++ b/src/mrc.c
@@ -4,6 +4,7 @@
* Read the MRC tomography format
*
* (c) 2007 Thomas White <taw27@cam.ac.uk>
+ *
* dtr - Diffraction Tomography Reconstruction
*
*/
@@ -55,7 +56,6 @@ int mrc_read(ControlContext *ctx) {
/* Read all extended headers, one by one */
extsize = 4*mrc.numintegers + 4*mrc.numfloats;
- printf("extsize=%d numintegers=%d numfloats=%d\n",extsize,mrc.numintegers,mrc.numfloats);
if ( extsize > sizeof(MRCExtHeader) ) {
fclose(fh);
fprintf(stderr, "MR: MRC extended header is too big - tweak mrc.h\n");
@@ -66,14 +66,14 @@ int mrc_read(ControlContext *ctx) {
}
pixel_size = ext[0].pixel_size;
- printf("pixel_size=%f\n", pixel_size);
+ printf("pixel_size = %f m^-1\n", pixel_size);
ctx->reflectionctx = reflection_init();
ctx->fmode = FORMULATION_PIXELSIZE;
ctx->first_image = 1;
ctx->width = mrc.nx;
ctx->height = mrc.ny;
- printf("Judging centre...\n");
+ printf("Judging centre...");
image_total = malloc(mrc.ny * mrc.nx * sizeof(int16_t));
for ( y=0; y<mrc.ny; y++ ) {
for ( x=0; x<mrc.nx; x++ ) {
@@ -102,9 +102,9 @@ int mrc_read(ControlContext *ctx) {
}
}
imagedisplay_mark_point(sum_id, max_x, max_y);
- printf("max_x=%d max_y=%d\n",max_x,max_y);
ctx->x_centre = max_x;
ctx->y_centre = max_y;
+ printf("done\n");
for ( i=0; i<mrc.nz; i++ ) {