aboutsummaryrefslogtreecommitdiff
path: root/scripts/hkl2hkl
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-07-30 20:32:55 -0700
committerThomas White <taw@bitwiz.org.uk>2012-07-30 20:42:51 -0700
commit0b262aa61f587b69fd46c95841342886580f4946 (patch)
tree995a2619022ac01e0f96611f47eb37adf195641d /scripts/hkl2hkl
parent31f6c26cd344c01e0c329fa812cf78a7ef9dc700 (diff)
Update *2hkl scripts, add cif2hkl
Diffstat (limited to 'scripts/hkl2hkl')
-rwxr-xr-xscripts/hkl2hkl13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/hkl2hkl b/scripts/hkl2hkl
index 70757d50..a9dfab13 100755
--- a/scripts/hkl2hkl
+++ b/scripts/hkl2hkl
@@ -4,20 +4,25 @@ use strict;
my $line;
-printf(" h k l I phase sigma(I) 1/d(nm^-1) counts\n");
+printf(" h k l I phase sigma(I) counts"
+ ." fs/px ss/px\n");
while ( $line = <STDIN> ) {
- if ( $line =~ /^\s*([\d\-]+)\s+([\d\-]+)\s+([\d\-]+)\s+([\d\.\-]+)\s+/ ) {
+ if ( $line =~ /([\d\-]+)\s+([\d\-]+)\s+([\d\-]+)\s+([\d\.\-]+)\s+([\d\.\-]+)/ ) {
my $h = $1;
my $k = $2;
my $l = $3;
my $intensity = $4;
+ my $sigi = $5;
- printf("%3i %3i %3i %10.2f %s %10.2f %10.2f %7i\n",
- $h, $k, $l, $intensity, " -", 0.0, 0.0, 1);
+ printf("%3i %3i %3i %10.2f %s %10.2f %7i %6.1f %6.1f\n",
+ $h, $k, $l, $intensity, " -", $sigi,
+ 1, 0.0, 0.0);
}
}
+
+printf("End of reflections\n");