Skip to content

Commit

Permalink
Fix GMT_App_M_1?.sh so it passes test
Browse files Browse the repository at this point in the history
  • Loading branch information
remkos committed Jan 4, 2025
1 parent ae8103f commit bf15806
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
8 changes: 3 additions & 5 deletions doc/scripts/GMT_App_M_1a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ y=0.375
y2=0.25
while [ $i -le $n ]
do
j1=$(expr $n - $i)
j2=$(expr $n - $i + 1)
if [ $i -eq $n ]; then
plot $(sed -n ${j2}p tt.lis) 3.05
plot $(sed -n 1p tt.lis) 3.05
else
plot $(sed -n ${j1}p tt.lis) 1.55
plot $(sed -n ${j2}p tt.lis) 4.50
plot $(sed -n $(expr $n - $i )p tt.lis) 1.55
plot $(sed -n $(expr $n - $i + 1)p tt.lis) 4.50
fi
i=$(expr $i + 2)
y=$(gmt math -Q $y $dy ADD =)
Expand Down
8 changes: 3 additions & 5 deletions doc/scripts/GMT_App_M_1b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ y=0.375
y2=0.25
while [ $i -le $n ]
do
j1=$(expr $n - $i)
j2=$(expr $n - $i + 1)
if [ $i -eq $n ]; then
plot $(sed -n ${j2}p tt.lis) 3.05
plot $(sed -n 1p tt.lis) 3.05
else
plot $(sed -n ${j1}p tt.lis) 1.55
plot $(sed -n ${j2}p tt.lis) 4.50
plot $(sed -n $(expr $n - $i )p tt.lis) 1.55
plot $(sed -n $(expr $n - $i + 1)p tt.lis) 4.50
fi
i=$(expr $i + 2)
y=$(gmt math -Q $y $dy ADD =)
Expand Down
8 changes: 3 additions & 5 deletions doc/scripts/GMT_App_M_1c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ y=0.375
y2=0.25
while [ $i -le $n ]
do
j1=$(expr $n - $i)
j2=$(expr $n - $i + 1)
if [ $i -eq $n ]; then
plot $(sed -n ${j2}p tt.lis) 3.05
plot $(sed -n 1p tt.lis) 3.05
else
plot $(sed -n ${j1}p tt.lis) 1.55
plot $(sed -n ${j2}p tt.lis) 4.50
plot $(sed -n $(expr $n - $i )p tt.lis) 1.55
plot $(sed -n $(expr $n - $i + 1)p tt.lis) 4.50
fi
i=$(expr $i + 2)
y=$(gmt math -Q $y $dy ADD =)
Expand Down
8 changes: 3 additions & 5 deletions doc/scripts/GMT_App_M_1d.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ y=0.375
y2=0.25
while [ $i -le $n ]
do
j1=$(expr $n - $i)
j2=$(expr $n - $i + 1)
if [ $i -eq $n ]; then
plot $(sed -n ${j2}p tt.lis) 3.05
plot $(sed -n 1p tt.lis) 3.05
else
plot $(sed -n ${j1}p tt.lis) 1.55
plot $(sed -n ${j2}p tt.lis) 4.50
plot $(sed -n $(expr $n - $i )p tt.lis) 1.55
plot $(sed -n $(expr $n - $i + 1)p tt.lis) 4.50
fi
i=$(expr $i + 2)
y=$(gmt math -Q $y $dy ADD =)
Expand Down

0 comments on commit bf15806

Please sign in to comment.