Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
swiss_army_knife_stable
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Andrea Giannetti
swiss_army_knife_stable
Compare revisions
db45b2ab3f10082838d973973992fdad48051604 to cd03e0397bd0730c920bd349d08fc206239c704a
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
andrea.giannetti/swiss_army_knife_stable
Select target project
No results found
cd03e0397bd0730c920bd349d08fc206239c704a
Select Git revision
Swap
Target
andrea.giannetti/swiss_army_knife_stable
Select target project
andrea.giannetti/swiss_army_knife_stable
1 result
db45b2ab3f10082838d973973992fdad48051604
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Added fit result table reference to text and updated label
· 0ad15fdb
Andrea Giannetti
authored
3 months ago
0ad15fdb
Added example figure of the profiles.
· cd03e039
Andrea Giannetti
authored
2 months ago
cd03e039
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
etl/prs/prs_make_profiles_figure.py
+31
-0
31 additions, 0 deletions
etl/prs/prs_make_profiles_figure.py
etl/prs/prs_poc_latex_table.py
+1
-1
1 addition, 1 deletion
etl/prs/prs_poc_latex_table.py
with
32 additions
and
1 deletion
etl/prs/prs_make_profiles_figure.py
0 → 100644
View file @
cd03e039
import
matplotlib.pyplot
as
plt
import
numpy
as
np
import
os
# plt.rcParams.update({'font.size': 12})
p
=
-
1.5
q
=
-
0.5
n_0
=
1e5
T_0
=
25
radius
=
np
.
linspace
(
0
,
0.9
,
100
)
density
=
n_0
*
(
radius
/
0.5
)
**
p
density
[
0
]
=
1e8
temperature
=
T_0
*
(
radius
/
0.5
)
**
q
temperature
[
0
]
=
2000
plt
.
clf
()
fig
,
ax
=
plt
.
subplots
(
layout
=
'
constrained
'
)
ln1
=
ax
.
plot
(
radius
,
density
,
label
=
r
'
n(H$_2$)
'
)
ax
.
semilogy
()
ax
.
set_ylabel
(
r
'
Number density [cm$^{-3}$]
'
)
ax
.
set_xlabel
(
r
'
Radius [pc]
'
)
ax2
=
ax
.
twinx
()
ln2
=
ax2
.
plot
(
radius
,
temperature
,
color
=
'
red
'
,
label
=
'
T
'
)
lns
=
ln1
+
ln2
labs
=
[
l
.
get_label
()
for
l
in
lns
]
ax
.
legend
(
lns
,
labs
,
loc
=
0
)
ax2
.
semilogy
()
ax2
.
set_ylabel
(
'
Temperature [K]
'
)
plt
.
savefig
(
os
.
path
.
join
(
'
prs
'
,
'
output
'
,
'
density_temperature_profiles.png
'
))
This diff is collapsed.
Click to expand it.
etl/prs/prs_poc_latex_table.py
View file @
cd03e039
...
...
@@ -59,7 +59,7 @@ remap_columns = OrderedDict([
(
'
class_phys
'
,
(
'
Classification
'
,
''
)),
(
'
best_fit
'
,
(
'
best fit($n\mathrm{H_2}$)
'
,
density_format
)),
(
'
hpd_interval
'
,
(
'
67\% HPD
'
,
density_format
)),
(
'
mass
'
,
(
'
Mass
'
,
'
$[10^2
\mathrm{M_\odot}]$
'
)),
(
'
mass
'
,
(
'
Mass
'
,
'
$[10^2
,
\mathrm{M_\odot}]$
'
)),
(
'
distance
'
,
(
'
Distance
'
,
'
[kpc]
'
)),
(
'
tpeak_86
'
,
(
'
$T_{MB,(2_{-1}-1_{-1})}$
'
,
'
[K]
'
)),
(
'
linewidth_86
'
,
(
'
$FWHM_{(2_K-1_K)}$
'
,
fwhm_units
)),
...
...
This diff is collapsed.
Click to expand it.