From 0572dad2b5d1657090b266a8955f7f06cc8dd5d1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 11 Feb 2015 17:23:48 +0100 Subject: indexamajig: Add --fix-{profile-radius,bandwidth,divergence} --- src/process_image.c | 65 ++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 47 insertions(+), 18 deletions(-) (limited to 'src/process_image.c') diff --git a/src/process_image.c b/src/process_image.c index 84c3e996..2f6aa70f 100644 --- a/src/process_image.c +++ b/src/process_image.c @@ -279,31 +279,60 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs, crystal_set_image(image.crystals[i], &image); } - /* Default parameters */ - image.div = 0.0; - image.bw = 0.00000001; - for ( i=0; ifix_divergence >= 0.0 ) { + image.div = iargs->fix_divergence; + } else { + image.div = 0.0; + } + if ( iargs->fix_bandwidth >= 0.0 ) { + image.bw = iargs->fix_bandwidth; + } else { + image.bw = 0.00000001; + } + if ( iargs->fix_profile_r >= 0.0 ) { + for ( i=0; ifix_profile_r); + crystal_set_mosaicity(image.crystals[i], 0.0); + } + } else { + for ( i=0; iint_meth, PMODEL_SCSPHERE, iargs->push_res, - iargs->ir_inn, iargs->ir_mid, iargs->ir_out, - INTDIAG_NONE, 0, 0, 0, results_pipe); + if ( iargs->fix_profile_r < 0.0 ) { - for ( i=0; iint_meth, PMODEL_SCSPHERE, + iargs->push_res, + iargs->ir_inn, iargs->ir_mid, iargs->ir_out, + INTDIAG_NONE, 0, 0, 0, results_pipe); + + for ( i=0; iint_meth, PMODEL_SCSPHERE, + integrate_all_4(&image, iargs->int_meth, PMODEL_SCSPHERE, iargs->push_res, - iargs->ir_inn, iargs->ir_mid, iargs->ir_out, - iargs->int_diag, iargs->int_diag_h, - iargs->int_diag_k, iargs->int_diag_l, - results_pipe); + iargs->ir_inn, iargs->ir_mid, iargs->ir_out, + iargs->int_diag, iargs->int_diag_h, + iargs->int_diag_k, iargs->int_diag_l, + results_pipe); + } else { + + integrate_all_4(&image, iargs->int_meth, PMODEL_SCSPHERE, + iargs->push_res, + iargs->ir_inn, iargs->ir_mid, iargs->ir_out, + iargs->int_diag, iargs->int_diag_h, + iargs->int_diag_k, iargs->int_diag_l, + results_pipe); + + } ret = write_chunk(st, &image, hdfile, iargs->stream_peaks, iargs->stream_refls, -- cgit v1.2.3