From 3849a9692813ddd850b5e2ce1bec8a32b43b5900 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 4 Dec 2009 14:17:35 +0100 Subject: Add new program: get_hkl, for generating ideal intensity lists --- src/process_hkl.c | 70 +------------------------------------------------------ 1 file changed, 1 insertion(+), 69 deletions(-) (limited to 'src/process_hkl.c') diff --git a/src/process_hkl.c b/src/process_hkl.c index aed9856e..9142d5c7 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -24,6 +24,7 @@ #include "utils.h" #include "statistics.h" #include "sfac.h" +#include "reflections.h" /* Number of divisions for R vs |q| graphs */ @@ -124,72 +125,6 @@ static void write_RvsQ(const char *name, double *ref, double *trueref, } -static void write_reflections(const char *filename, unsigned int *counts, - double *ref, int zone_axis, UnitCell *cell) -{ - FILE *fh; - signed int h, k, l; - - fh = fopen(filename, "w"); - - /* Write spacings and angle if zone axis pattern */ - if ( zone_axis ) { - double a, b, c, alpha, beta, gamma; - cell_get_parameters(cell, &a, &b, &c, &alpha, &beta, &gamma); - fprintf(fh, "a %5.3f nm\n", a*1e9); - fprintf(fh, "b %5.3f nm\n", b*1e9); - fprintf(fh, "angle %5.3f deg\n", rad2deg(gamma)); - fprintf(fh, "scale 10\n"); - } - - for ( h=-INDMAX; hreflections); - write_reflections("results/ideal-reflections.hkl", NULL, trueref, 1, - mol->cell); - if ( strcmp(filename, "-") == 0 ) { fh = stdin; } else { -- cgit v1.2.3