From 902378fa6beb49b171834ab2c9357f281824be30 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 3 Apr 2012 14:36:58 +0200 Subject: partial_sim: Document --pgraph --- doc/man/partial_sim.1 | 11 +++++++++++ src/partial_sim.c | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/doc/man/partial_sim.1 b/doc/man/partial_sim.1 index 5b44d34f..e41708ed 100644 --- a/doc/man/partial_sim.1 +++ b/doc/man/partial_sim.1 @@ -71,6 +71,17 @@ When combined with with \fB-i\fR, specifies the symmetry of the input reflection .PD Add random values with a flat distribution to the components of the reciprocal lattice vectors written to the stream, simulating indexing errors. The maximum value that will be added is +/- \fIval\fR percent. +.PD 0 +.B +.IP "\fB--pgraph=\fR\fIfilename\fR +.PD +Write reflection statistics to \fifilename\fR. The file consists of a one-line +header and has columns as follows: the centre of the resolution bin (in inverse +nanometres), the number of reflections in that bin across the whole simulated +data set, the mean partiality for the bin, and the maximum partiality which was +encountered in the bin. + + .SH AUTHOR This page was written by Thomas White. diff --git a/src/partial_sim.c b/src/partial_sim.c index 31822eca..39621a6c 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -178,6 +178,8 @@ static void show_help(const char *s) " -c, --cnoise= Add random noise, with a flat distribution, to the\n" " reciprocal lattice vector components given in the\n" " stream, with maximum error +/- percent.\n" +" --pgraph= Write reflection counts and partiality statistics\n" +" to .\n" "\n" ); } @@ -538,6 +540,8 @@ int main(int argc, char *argv[]) if ( fh != NULL ) { + fprintf(fh, "1/d_nm #refl pmean pmax\n"); + for ( i=0; i