diff options
author | Thomas White <taw@physics.org> | 2013-05-23 14:12:52 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-05-27 17:33:15 +0200 |
commit | bc6e617c339fdd4e1be6042cb8b70fe9a704c863 (patch) | |
tree | d83c779d4917a559ded079f99117b53ede59ca9f /src | |
parent | 4fd346391387f740c29561257a5af3fdfdd56700 (diff) |
Individual panel arrays
Diffstat (limited to 'src')
-rw-r--r-- | src/process_image.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/process_image.c b/src/process_image.c index bf694623..65deace5 100644 --- a/src/process_image.c +++ b/src/process_image.c @@ -109,32 +109,6 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs, return; } - if ( (image.width != image.det->max_fs + 1 ) - || (image.height != image.det->max_ss + 1)) - { - ERROR("Image size doesn't match geometry size" - " - rejecting image.\n"); - ERROR("Image size: %i,%i. Geometry size: %i,%i\n", - image.width, image.height, - image.det->max_fs + 1, image.det->max_ss + 1); - hdfile_close(hdfile); - return; - } - - fill_in_values(image.det, hdfile); - fill_in_beam_parameters(image.beam, hdfile); - - image.lambda = ph_en_to_lambda(eV_to_J(image.beam->photon_energy)); - - if ( (image.beam->photon_energy < 0.0) || (image.lambda > 1000) ) { - /* Error message covers a silly value in the beam file or in - * the HDF5 file. */ - ERROR("Nonsensical wavelength (%e m or %e eV) value for %s.\n", - image.lambda, image.beam->photon_energy, image.filename); - hdfile_close(hdfile); - return; - } - /* Take snapshot of image after CM subtraction but before applying * horrible noise filters to it */ data_size = image.width * image.height * sizeof(float); |