Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fdt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fdt
Commits
2a6a5d51
Commit
2a6a5d51
authored
12 years ago
by
Mark Jenkinson
Browse files
Options
Downloads
Patches
Plain Diff
First commit
parent
5d8aea67
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ec_plot
+48
-0
48 additions, 0 deletions
ec_plot
with
48 additions
and
0 deletions
ec_plot
0 → 100755
+
48
−
0
View file @
2a6a5d51
#!/bin/sh
if
[
$#
-lt
1
]
;
then
echo
"Usage:
`
basename
$0
`
<eddy current ecclog file>"
exit
0
;
fi
logfile
=
$1
;
basenm
=
`
basename
$logfile
.ecclog
`
;
nums
=
`
grep
-n
'Final'
$logfile
|
sed
's/:.*//'
`
;
touch
grot_ts.txt
touch
grot.mat
firsttime
=
yes
;
m
=
1
;
for
n
in
$nums
;
do
echo
"Timepoint
$m
"
n1
=
`
echo
$n
+ 1 | bc
`
;
n2
=
`
echo
$n
+ 5 | bc
`
;
sed
-n
"
$n1
,
${
n2
}
p"
$logfile
>
grot.mat
;
if
[
$firsttime
=
yes
]
;
then
firsttime
=
no
;
cp
grot.mat grot.refmat
;
cp
grot.mat grot.oldmat
;
fi
absval
=
`
$FSLDIR
/bin/rmsdiff grot.mat grot.refmat
$basenm
`
;
relval
=
`
$FSLDIR
/bin/rmsdiff grot.mat grot.oldmat
$basenm
`
;
cp
grot.mat grot.oldmat
echo
$absval
$relval
>>
ec_disp.txt
;
$FSLDIR
/bin/avscale
--allparams
grot.mat
$basenm
|
grep
'Rotation Angles'
|
sed
's/.* = //'
>>
ec_rot.txt
;
$FSLDIR
/bin/avscale
--allparams
grot.mat
$basenm
|
grep
'Translations'
|
sed
's/.* = //'
>>
ec_trans.txt
;
m
=
`
echo
$m
+ 1 | bc
`
;
done
echo
"absolute"
>
grot_labels.txt
echo
"relative"
>>
grot_labels.txt
$FSLDIR
/bin/fsl_tsplot
-i
ec_disp.txt
-t
'Eddy Current estimated mean displacement (mm)'
-l
grot_labels.txt
-o
ec_disp.png
echo
"x"
>
grot_labels.txt
echo
"y"
>>
grot_labels.txt
echo
"z"
>>
grot_labels.txt
$FSLDIR
/bin/fsl_tsplot
-i
ec_rot.txt
-t
'Eddy Current estimated rotations (radians)'
-l
grot_labels.txt
-o
ec_rot.png
$FSLDIR
/bin/fsl_tsplot
-i
ec_trans.txt
-t
'Eddy Current estimated translations (mm)'
-l
grot_labels.txt
-o
ec_trans.png
# clean up temp files
/bin/rm grot_labels.txt grot.oldmat grot.refmat grot.mat
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment