1 gaskelld 1.1 #!/bin/sh
2 sed -e 's/EXPER.charge/EXPER%charge/;
3 s/spec.e.P/spec%e%P/;
4 s/spec.e.theta/spec%e%theta/;
5 s/spec.p.P/spec%p%P/;
6 s/spec.p.theta/spec%p%theta/;
7 s/targ.A/targ%A/;
8 s/targ.Z/targ%Z/;
9 s/targ.mass_amu/targ%mass_amu/;
10 s/targ.mrec_amu/targ%mrec_amu/;
11 s/targ.rho/targ%rho/;
12 s/targ.thick/targ%thick/;
13 s/targ.angle/targ%angle/;
14 s/targ.abundancy/targ%abundancy/;
15 s/targ.can/targ%can/;
16 s/SPedge.e.delta.min/SPedge%e%delta%min/;
17 s/SPedge.e.delta.max/SPedge%e%delta%max/;
18 s/SPedge.e.yptar.min/SPedge%e%yptar%min/;
19 s/SPedge.e.yptar.max/SPedge%e%yptar%max/;
20 s/SPedge.e.xptar.min/SPedge%e%xptar%min/;
21 s/SPedge.e.xptar.max/SPedge%e%xptar%max/;
22 gaskelld 1.1 s/SPedge.p.delta.min/SPedge%p%delta%min/;
23 s/SPedge.p.delta.max/SPedge%p%delta%max/;
24 s/SPedge.p.yptar.min/SPedge%p%yptar%min/;
25 s/SPedge.p.yptar.max/SPedge%p%yptar%max/;;
26 s/SPedge.p.xptar.min/SPedge%p%xptar%min/
27 s/SPedge.p.xptar.max/SPedge%p%xptar%max/;
28 s/gen.xwid/gen%xwid/;
29 s/gen.ywid/gen%ywid/;
30 s/targ.fr_pattern/targ%fr_pattern/;
31 s/targ.fr1/targ%fr1/;
32 s/targ.fr2/targ%fr2/;
33 s/targ.xoffset/targ%xoffset/;
34 s/targ.yoffset/targ%yoffset/;
35 s/targ.zoffset/targ%zoffset/;
36 s/spec.e.offset.x/spec%e%offset%x/;
37 s/spec.e.offset.y/spec%e%offset%y/;
38 s/spec.e.offset.z/spec%e%offset%z/;
39 s/spec.e.offset.xptar/spec%e%offset%xptar/;
40 s/spec.e.offset.yptar/spec%e%offset%yptar/;
41 s/spec.p.offset.x/spec%p%offset%x/;
42 s/spec.p.offset.y/spec%p%offset%y/;
43 gaskelld 1.1 s/spec.p.offset.z/spec%p%offset%z/;
44 s/spec.p.offset.xptar/spec%p%offset%xptar/;
45 s/spec.p.offset.yptar/spec%p%offset%yptar/;
46 s/cuts.Em.min/cuts%Em%min/;
47 s/cuts.Em.max/cuts%Em%max/' < $1 > temp.inp
48 cp temp.inp $1
|