23 |
|
my $nproc = 1; |
24 |
|
my $doforw = 0; |
25 |
|
my $doback = 1; |
26 |
+ |
my $pctcull = 95; |
27 |
|
my $gunit = "Meter"; |
28 |
|
my @dim; |
29 |
|
# Get options |
44 |
|
$doforw = ("$ARGV[0]" =~ /^\+/); |
45 |
|
} elsif ("$ARGV[0]" =~ /^[-+]b/) { |
46 |
|
$doback = ("$ARGV[0]" =~ /^\+/); |
47 |
+ |
} elsif ("$ARGV[0]" eq "-t") { |
48 |
+ |
$pctcull = $ARGV[1]; |
49 |
+ |
shift @ARGV; |
50 |
|
} elsif ("$ARGV[0]" =~ /^-t[34]$/) { |
51 |
|
$tensortree = substr($ARGV[0], 2, 1); |
52 |
|
$ttlog2 = $ARGV[1]; |
338 |
|
system "rcalc -if3 -e 'Omega:PI/($ns*$ns)' " . |
339 |
|
q{-e '$1=(0.265*$1+0.670*$2+0.065*$3)/Omega' -of } . |
340 |
|
"$td/" . ($bmodnm,$fmodnm)[$forw] . "_???.flt " . |
341 |
< |
"| rttree_reduce -h -ff -r $tensortree -g $ttlog2"; |
341 |
> |
"| rttree_reduce -h -ff -t $pctcull -r $tensortree -g $ttlog2"; |
342 |
|
die "Failure running rttree_reduce" if ( $? ); |
343 |
|
print |
344 |
|
' </ScatteringData> |
364 |
|
system "rcalc -if3 -e 'Omega:PI/($ns*$ns)' " . |
365 |
|
q{-e '$1=(0.265*$1+0.670*$2+0.065*$3)/Omega' -of } . |
366 |
|
"$td/" . ($fmodnm,$bmodnm)[$forw] . "_???.flt " . |
367 |
< |
"| rttree_reduce -h -ff -r $tensortree -g $ttlog2"; |
367 |
> |
"| rttree_reduce -h -ff -t $pctcull -r $tensortree -g $ttlog2"; |
368 |
|
die "Failure running rttree_reduce" if ( $? ); |
369 |
|
print |
370 |
|
' </ScatteringData> |