Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Waveform_Extractor
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
Eliu Huerta Escudero
Waveform_Extractor
Commits
32764733
Commit
32764733
authored
7 years ago
by
Daniel Johnson
Browse files
Options
Downloads
Patches
Plain Diff
Add phase plot to monitor script
parent
e1d6a466
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
POWER/monitor_waveform.sh
+6
-5
6 additions, 5 deletions
POWER/monitor_waveform.sh
POWER/plot_monitor.py
+11
-1
11 additions, 1 deletion
POWER/plot_monitor.py
POWER/power.py
+2
-0
2 additions, 0 deletions
POWER/power.py
with
19 additions
and
6 deletions
POWER/monitor_waveform.sh
+
6
−
5
View file @
32764733
#!/bin/bash
folder
=
$1
for
folder
in
"
$@
"
do
run
=
${
folder
##*/
}
./power.py
$folder
./plot_monitor.py
$run
done
run
=
${
folder
##*/
}
./power.py
$folder
./plot_monitor.py
$run
This diff is collapsed.
Click to expand it.
POWER/plot_monitor.py
+
11
−
1
View file @
32764733
...
...
@@ -7,17 +7,27 @@ import sys
run_name
=
sys
.
argv
[
1
]
python_strain
=
np
.
loadtxt
(
"
./Extrapolated_Strain/
"
+
run_name
+
"
/
"
+
run_name
+
"
_strain_at_500.dat
"
)
python_strain
=
np
.
loadtxt
(
"
./Extrapolated_Strain/
"
+
run_name
+
"
/
"
+
run_name
+
"
_radially_extrapolated_strain.dat
"
)
python_phase
=
np
.
loadtxt
(
"
./Extrapolated_Strain/
"
+
run_name
+
"
/
"
+
run_name
+
"
_radially_extrapolated_phase.dat
"
)
py_t
=
python_strain
[:,
0
]
py_hplus
=
python_strain
[:,
1
]
py_phase
=
python_phase
[:,
1
]
run_name_without_resolution
=
run_name
.
split
(
"
_
"
)[
0
]
matplotlib
.
rcParams
.
update
({
'
font.size
'
:
12
})
matplotlib
.
rcParams
.
update
({
'
font.family
'
:
'
serif
'
})
plt
.
title
(
run_name_without_resolution
)
plt
.
plot
(
py_t
,
py_hplus
)
plt
.
xlim
((
0
,
None
))
plt
.
ylabel
(
'
${\mathfrak{R}} [h(t)]$
'
)
plt
.
xlabel
(
'
Time [M]
'
)
plt
.
show
()
plt
.
title
(
run_name_without_resolution
)
plt
.
plot
(
py_t
,
py_phase
)
plt
.
xlim
((
0
,
None
))
plt
.
ylabel
(
'
$\phi$
'
)
plt
.
xlabel
(
'
Time [M]
'
)
plt
.
show
()
This diff is collapsed.
Click to expand it.
POWER/power.py
+
2
−
0
View file @
32764733
...
...
@@ -392,3 +392,5 @@ for sim_path in paths:
radially_extrapolated_h_cross
=
np
.
append
(
radially_extrapolated_h_cross
,
radially_extrapolated_amp
[
i
]
*
math
.
sin
(
radially_extrapolated_phase
[
i
]))
np
.
savetxt
(
"
./Extrapolated_Strain/
"
+
sim
+
"
/
"
+
sim
+
"
_radially_extrapolated_strain.dat
"
,
np
.
column_stack
((
t
,
radially_extrapolated_h_plus
,
radially_extrapolated_h_cross
)))
np
.
savetxt
(
"
./Extrapolated_Strain/
"
+
sim
+
"
/
"
+
sim
+
"
_radially_extrapolated_amplitude.dat
"
,
np
.
column_stack
((
t
,
radially_extrapolated_amp
)))
np
.
savetxt
(
"
./Extrapolated_Strain/
"
+
sim
+
"
/
"
+
sim
+
"
_radially_extrapolated_phase.dat
"
,
np
.
column_stack
((
t
,
radially_extrapolated_phase
)))
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