From 64af7bfd252a42487735a0c7ca7b7f89b2e3ccd3 Mon Sep 17 00:00:00 2001 From: Karol Nass Date: Tue, 30 Apr 2013 14:17:09 +0200 Subject: Fix sigma(I) column in create-xscale output --- scripts/create-xscale | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/create-xscale b/scripts/create-xscale index 5d810f07..d452e8bc 100755 --- a/scripts/create-xscale +++ b/scripts/create-xscale @@ -21,16 +21,15 @@ while ( $line = ) { chomp($line); - if ( $line =~ /^\s+([0-9]+\-)\s+([0-9]+\-)\s+([0-9]+\-)\s+([0-9\.\-]+)/ ) { + if ( $line =~ /^\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)\s+([0-9\.\-]+)\s+([\-]+)\s+([0-9\.\-]+)/ ) { my $h = $1; my $k = $2; my $l = $3; my $int = $4; + my $sig = $6; - my $err = 179.0 * sqrt(abs($int)/179.0); - - printf("%6i %6i %5i %9.2f %9.2f\n", $h, $k, $l, $int, $err); + printf("%6i %6i %5i %9.2f %9.2f\n", $h, $k, $l, $int, $sig); } } -- cgit v1.2.3