aboutsummaryrefslogtreecommitdiff
path: root/scripts/zone-axis
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-06-07 12:17:34 +0200
committerThomas White <taw@physics.org>2010-06-07 12:17:34 +0200
commit623497dae0e4eb46dca1236a2a2884e9f17f1509 (patch)
tree041e6a30d35409a7366868db5608f5d443cf57d8 /scripts/zone-axis
parent69a6f756f91ed9470894010a6b61ccd6f65841d0 (diff)
Add scripts/zone-axis
Diffstat (limited to 'scripts/zone-axis')
-rwxr-xr-xscripts/zone-axis25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/zone-axis b/scripts/zone-axis
new file mode 100755
index 00000000..a9e77dda
--- /dev/null
+++ b/scripts/zone-axis
@@ -0,0 +1,25 @@
+#!/usr/bin/perl -w
+
+use strict;
+
+open(FH, $ARGV[0]);
+
+my $line;
+
+while ( $line = <FH> ) {
+
+ if ( $line =~ /^([\d\-]+)\s+([\d\-]+)\s+([\d\-]+)\s+([\d\.\-]+)\s+/ ) {
+
+ my $h = $1;
+ my $k = $2;
+ my $l = $3;
+ my $intensity = $4;
+
+ if ( $l == 0 ) {
+ printf("%3i %3i %3i %f\n", $h, $k, $l, $intensity);
+ }
+
+
+ }
+
+}