diff options
author | Thomas White <taw@physics.org> | 2014-12-16 09:45:15 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-12-16 11:11:23 +0100 |
commit | 719ec03ff03e7cbb74eebe46aea9765b1021b9f7 (patch) | |
tree | e540f3f0d9eb1f616857736ea46f652bd74147df /src/compare_hkl.c | |
parent | ac047732855fbaf26ea3029400184480fd7d4ae4 (diff) |
{check,compare}_hkl: Include min/max bin ranges in shell files
Diffstat (limited to 'src/compare_hkl.c')
-rw-r--r-- | src/compare_hkl.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/compare_hkl.c b/src/compare_hkl.c index fc00c7d1..29d0746c 100644 --- a/src/compare_hkl.c +++ b/src/compare_hkl.c @@ -776,7 +776,7 @@ static void do_fom(RefList *list1, RefList *list2, UnitCell *cell, t2 = ""; } else { t1 = " 1/d centre"; - t2 = " d / A"; + t2 = " d / A Min 1/nm Max 1/nm"; } switch ( fom ) { @@ -841,8 +841,11 @@ static void do_fom(RefList *list1, RefList *list2, UnitCell *cell, fprintf(fh, "%10.3f %10.2f %10i\n", cen, r*100.0, cts[i]); } else { - fprintf(fh, "%10.3f %10.2f %10i %10.2f\n", - cen*1.0e-9, r*100.0, cts[i], (1.0/cen)*1e10); + fprintf(fh, "%10.3f %10.2f %10i %10.2f " + "%10.3f %10.3f\n", + cen*1.0e-9, r*100.0, cts[i], (1.0/cen)*1e10, + shells->rmins[i]*1.0e-9, + shells->rmaxs[i]*1.0e-9); } break; @@ -854,8 +857,11 @@ static void do_fom(RefList *list1, RefList *list2, UnitCell *cell, fprintf(fh, "%10.3f %10.7f %10i\n", cen, r, cts[i]); } else { - fprintf(fh, "%10.3f %10.7f %10i %10.2f\n", - cen*1.0e-9, r, cts[i], (1.0/cen)*1e10); + fprintf(fh, "%10.3f %10.7f %10i %10.2f " + "%10.3f %10.3f\n", + cen*1.0e-9, r, cts[i], (1.0/cen)*1e10, + shells->rmins[i]*1.0e-9, + shells->rmaxs[i]*1.0e-9); } break; @@ -864,8 +870,10 @@ static void do_fom(RefList *list1, RefList *list2, UnitCell *cell, fprintf(fh, "%10.3f %10.7f %10i\n", cen, r, cts[i]); } else { - fprintf(fh, "%10.3f %10.7f %10i %10.2f\n", - cen*1.0e-9, r, cts[i], (1.0/cen)*1e10); + fprintf(fh, "%10.3f %10.7f %10i %10.2f " + "%10.3f %10.3f\n", + cen*1.0e-9, r, cts[i], (1.0/cen)*1e10, + shells->rmins[i]*1.0e-9, shells->rmaxs[i]*1.0e-9); } break; |