diff options
author | Thomas White <taw@physics.org> | 2010-10-06 17:29:47 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:01 +0100 |
commit | 65de3133245e38ea9244590af43d1a99f948ff8d (patch) | |
tree | d28a46f3f5b234b7a552b9e435d253d112dd8ce7 /src/compare_hkl.c | |
parent | 9073482e1a252d44cc38360e905d6b17d7f4f279 (diff) |
compare_hkl: More useful resolution plot
Diffstat (limited to 'src/compare_hkl.c')
-rw-r--r-- | src/compare_hkl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compare_hkl.c b/src/compare_hkl.c index d1b1340f..096d1eb5 100644 --- a/src/compare_hkl.c +++ b/src/compare_hkl.c @@ -29,7 +29,7 @@ /* Number of bins for plot of resolution shells */ -#define NBINS (50) +#define NBINS (10) static void show_help(const char *s) @@ -85,7 +85,7 @@ static void plot_shells(const double *ref1, const double *ref2, it = get_item(items, i); h = it->h; k = it->k; l = it->l; - d = 0.5/resolution(cell, h, k, l); + d = resolution(cell, h, k, l) * 2.0; if ( d > rmax ) rmax = d; if ( d < rmin ) rmin = d; @@ -105,7 +105,7 @@ static void plot_shells(const double *ref1, const double *ref2, it = get_item(items, i); h = it->h; k = it->k; l = it->l; - d = 0.5/resolution(cell, h, k, l); + d = resolution(cell, h, k, l) * 2.0; bin = (d-rmin)/rstep; if ( bin == NBINS ) bin = NBINS-1; |