aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/peaks.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-02-09 17:35:20 -0800
committerThomas White <taw@physics.org>2013-02-09 17:35:20 -0800
commit5a98496730bbbee2bd5e6da6eff416bd9c8c051f (patch)
tree23d7e7c9bd2dc99876b2e71591545d8eeeca9def /libcrystfel/src/peaks.c
parent8adbbf7d02c66607c435a26d3cab9d28b640f9f1 (diff)
Add '--res-cutoff'
Diffstat (limited to 'libcrystfel/src/peaks.c')
-rw-r--r--libcrystfel/src/peaks.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 31eea0cb..6c09053b 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -714,7 +714,8 @@ static struct integr_ind *sort_reflections(RefList *list, UnitCell *cell,
static void integrate_crystal(Crystal *cr, struct image *image, int use_closer,
int bgsub, double min_snr,
double ir_inn, double ir_mid, double ir_out,
- int integrate_saturated, int **bgMasks)
+ int integrate_saturated, int **bgMasks,
+ int res_cutoff)
{
RefList *reflections;
struct integr_ind *il;
@@ -831,7 +832,7 @@ static void integrate_crystal(Crystal *cr, struct image *image, int use_closer,
}
//STATUS("%5.2f A, %5.2f, av %5.2f\n",
// 1e10/il[i].res, snr, av);
- //if ( av < 1.0 ) break;
+ if ( res_cutoff && (av < 1.0) ) break;
}
}
@@ -846,7 +847,7 @@ static void integrate_crystal(Crystal *cr, struct image *image, int use_closer,
void integrate_reflections(struct image *image, int use_closer, int bgsub,
double min_snr,
double ir_inn, double ir_mid, double ir_out,
- int integrate_saturated)
+ int integrate_saturated, int res_cutoff)
{
int i;
int **bgMasks;
@@ -870,7 +871,7 @@ void integrate_reflections(struct image *image, int use_closer, int bgsub,
for ( i=0; i<image->n_crystals; i++ ) {
integrate_crystal(image->crystals[i], image, use_closer,
bgsub, min_snr, ir_inn, ir_mid, ir_out,
- integrate_saturated, bgMasks);
+ integrate_saturated, bgMasks, res_cutoff);
}
for ( i=0; i<image->det->n_panels; i++ ) {