aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
+ }
+
+
+ }
+
+}