aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/indexamajig.c12
-rw-r--r--src/process_image.c2
-rw-r--r--src/process_image.h1
3 files changed, 14 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 019d55a1..b411b901 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -126,6 +126,7 @@ static void show_help(const char *s)
"-e, --image=<element> Use this image from the HDF5 file.\n"
" Example: /data/data0.\n"
" Default: The first one found.\n"
+" --push-res=<n> Integrate higher than apparent resolution cutoff.\n"
"\n"
"\nFor time-resolved stuff, you might want to use:\n\n"
" --copy-hdf5-field <f> Copy the value of field <f> into the stream. You\n"
@@ -235,6 +236,7 @@ int main(int argc, char *argv[])
iargs.indm = NULL; /* No default */
iargs.ipriv = NULL; /* No default */
iargs.int_meth = integration_method("rings-nocen", NULL);
+ iargs.push_res = 0.0;
/* Long options */
const struct option longopts[] = {
@@ -287,6 +289,8 @@ int main(int argc, char *argv[])
{"integration", 1, NULL, 16},
{"temp-dir", 1, NULL, 17},
{"int-diag", 1, NULL, 18},
+ {"push-res", 1, NULL, 19},
+ {"res-push", 1, NULL, 19}, /* compat */
{0, 0, NULL, 0}
};
@@ -419,6 +423,14 @@ int main(int argc, char *argv[])
int_diag = strdup(optarg);
break;
+ case 19 :
+ if ( sscanf(optarg, "%f", &iargs.push_res) != 1 ) {
+ ERROR("Invalid value for --push-res\n");
+ return 1;
+ }
+ iargs.push_res *= 1e9; /* nm^-1 -> m^-1 */
+ break;
+
case 0 :
break;
diff --git a/src/process_image.c b/src/process_image.c
index 9c4c740d..51d6ac79 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -184,7 +184,7 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
/* Integrate all the crystals at once - need all the crystals so that
* overlaps can be detected. */
- integrate_all(&image, iargs->int_meth,
+ integrate_all(&image, iargs->int_meth, 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);
diff --git a/src/process_image.h b/src/process_image.h
index 20e6fe2e..7fedc51b 100644
--- a/src/process_image.h
+++ b/src/process_image.h
@@ -78,6 +78,7 @@ struct index_args
signed int int_diag_h;
signed int int_diag_k;
signed int int_diag_l;
+ float push_res;
};