From b7741b3c35045c1d1d4b0cab3aa2c2b9157247e4 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 4 Dec 2009 16:48:05 +0100 Subject: Add -o option, fix noise option --- src/get_hkl.c | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'src/get_hkl.c') diff --git a/src/get_hkl.c b/src/get_hkl.c index 477a2631..2a73f855 100644 --- a/src/get_hkl.c +++ b/src/get_hkl.c @@ -34,7 +34,9 @@ static void show_help(const char *s) "\n" " -h, --help Display this help message.\n" "\n" -" -t, --template= Only include reflections mentioned in file.\n"); +" -t, --template= Only include reflections mentioned in file.\n" +" --poisson Simulate Poisson samples.\n" +" -o --output= Output filename (default: stdout).\n"); } @@ -84,13 +86,15 @@ static void noisify_reflections(double *ref) for ( l=-INDMAX; lreflections); if ( template != NULL ) { + + double *tref; + tref = template_reflections(ref, template); if ( tref == NULL ) { ERROR("Couldn't read template file!\n"); @@ -148,12 +162,12 @@ int main(int argc, char *argv[]) } free(ref); ref = tref; + } if ( config_noisify ) noisify_reflections(ref); - write_reflections("results/ideal-reflections.hkl", NULL, tref, 1, - mol->cell); + write_reflections(output, NULL, ref, 1, mol->cell); return 0; } -- cgit v1.2.3