diff options
author | Thomas White <taw@physics.org> | 2010-11-11 17:11:45 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:05 +0100 |
commit | 30012bfefa8c388c86b1fe0078fc3665798cfcc8 (patch) | |
tree | 1008310c621b62ad2b49146fe484cf165f698f2d /scripts/hkl2hkl | |
parent | eb72df252830d9cbdbcf993445a6cfa5c1d234ee (diff) |
Update scripts
Diffstat (limited to 'scripts/hkl2hkl')
-rwxr-xr-x | scripts/hkl2hkl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/hkl2hkl b/scripts/hkl2hkl new file mode 100755 index 00000000..70757d50 --- /dev/null +++ b/scripts/hkl2hkl @@ -0,0 +1,23 @@ +#!/usr/bin/perl -w + +use strict; + +my $line; + +printf(" h k l I phase sigma(I) 1/d(nm^-1) counts\n"); + +while ( $line = <STDIN> ) { + + if ( $line =~ /^\s*([\d\-]+)\s+([\d\-]+)\s+([\d\-]+)\s+([\d\.\-]+)\s+/ ) { + + my $h = $1; + my $k = $2; + my $l = $3; + my $intensity = $4; + + printf("%3i %3i %3i %10.2f %s %10.2f %10.2f %7i\n", + $h, $k, $l, $intensity, " -", 0.0, 0.0, 1); + + } + +} |