Skip to content

Commit a978b09

Browse files
committed
SPARC, MW RC
1 parent fd2ad93 commit a978b09

77 files changed

Lines changed: 10691 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
1414
Dierckx = "39dd38d3-220a-591b-8e3c-4c3a8c710a94"
1515
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
1616
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
17+
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
1718
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
1819
PhysicalConstants = "5ad8b20f-a522-5ce9-bfc9-ddf1d5bda6ab"
1920
PhysicalParticles = "78724250-4eb2-11e9-0f34-13a7aab864c5"
@@ -36,6 +37,7 @@ DataFrames = "1"
3637
Dierckx = "0.5"
3738
Distributions = "0.25"
3839
DocStringExtensions = "0.8, 0.9"
40+
Measurements = "2.14.1"
3941
Optim = "1"
4042
PhysicalConstants = "0.2"
4143
PhysicalParticles = "1"

src/AstroIC.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ using QuadGK
1717
using Optim
1818
using CSV
1919
using UnitfulAngles
20+
using Measurements
2021

2122
@reexport using PhysicalParticles
2223
@reexport using AstroIO
@@ -75,6 +76,13 @@ include("solarsystem.jl")
7576
include("data/MW_satellites.jl")
7677
export load_data_MW_satellites
7778

79+
include("data/SPARC.jl")
80+
export load_SPARC_LTGs_RC, load_SPARC_LTGs_data, load_li2018_SPARC
81+
export load_SPARC_Xray_ETGs_data, load_SPARC_rotating_ETGs_data, load_SPARC_rotating_ETGs_RC, load_SPARC_rotating_ETGs_rotmod
82+
83+
include("data/MilkyWay.jl")
84+
export load_MW_RC_Eilers2019, load_MW_RC_Mroz2019, load_MW_RC_stddev_W21, load_MW_RC_DS_W21
85+
7886
include("precompile.jl")
7987

8088
"""

src/data/MilkyWay.jl

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"""
2+
$(TYPEDSIGNATURES)
3+
"""
4+
function load_MW_RC_Eilers2019(filename = joinpath(@__DIR__, "MilkyWay/MW_RC_Eilers2019.dat"))
5+
dfEilers2019 = DataFrame(CSV.File(filename; header = false, delim=" ", ignorerepeated = true))
6+
rename!(dfEilers2019, [:r, :v, :σ_low, :σ_high])
7+
return dfEilers2019
8+
end
9+
10+
"""
11+
$(TYPEDSIGNATURES)
12+
"""
13+
function load_MW_RC_Mroz2019(filename = joinpath(@__DIR__, "MilkyWay/MW_RC_Mroz2019.dat"))
14+
dfMroz2019 = DataFrame(CSV.File(filename; header = false, delim=" ", ignorerepeated = true))
15+
rename!(dfMroz2019, [:r, :v, :σ_low, :σ_high])
16+
return dfMroz2019
17+
end
18+
19+
"""
20+
$(TYPEDSIGNATURES)
21+
"""
22+
function load_MW_RC_stddev_W21(filename = joinpath(@__DIR__, "MilkyWay/MW_RC_stddev_W21.txt"))
23+
dfstddev_W21 = DataFrame(CSV.File(filename; header = false, delim=" ", ignorerepeated = true))
24+
rename!(dfstddev_W21, [:id, :r, :v, :σ_v, :σ_r])
25+
return dfstddev_W21
26+
end
27+
28+
"""
29+
$(TYPEDSIGNATURES)
30+
"""
31+
function load_MW_RC_DS_W21(filename = joinpath(@__DIR__, "MilkyWay/MW_dsvel-W21-RC.txt"))
32+
dfDS_W21 = DataFrame(CSV.File(filename; header = false, skipto=3, delim="\t", ignorerepeated = true))
33+
rename!(dfDS_W21, [:r, :v_b, :v_CDM, :v_QUMOND, :v_MOG])
34+
return dfDS_W21
35+
end
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
5.27 226.83 1.91 1.90
2+
5.74 230.80 1.43 1.35
3+
6.23 231.20 1.70 1.10
4+
6.73 229.88 1.44 1.32
5+
7.22 229.61 1.37 1.11
6+
7.82 229.91 0.92 0.88
7+
8.19 228.86 0.80 0.67
8+
8.78 226.50 1.07 0.95
9+
9.27 226.20 0.72 0.62
10+
9.76 225.94 0.42 0.52
11+
10.26 225.68 0.44 0.40
12+
10.75 224.73 0.38 0.41
13+
11.25 224.02 0.33 0.54
14+
11.75 223.86 0.40 0.39
15+
12.25 222.23 0.51 0.37
16+
12.74 220.77 0.54 0.46
17+
13.23 220.92 0.57 0.40
18+
13.74 217.47 0.64 0.51
19+
14.24 217.31 0.77 0.66
20+
14.74 217.60 0.65 0.68
21+
15.22 217.07 1.06 0.80
22+
15.74 217.38 0.84 1.07
23+
16.24 216.14 1.20 1.48
24+
16.74 212.52 1.39 1.43
25+
17.25 216.41 1.44 1.85
26+
17.75 213.70 2.22 1.65
27+
18.24 207.89 1.76 1.88
28+
18.74 209.60 2.31 2.77
29+
19.22 206.45 2.54 2.36
30+
19.71 201.91 2.99 2.26
31+
20.27 199.84 3.15 2.89
32+
20.78 198.14 3.33 3.37
33+
21.24 195.30 5.99 6.50
34+
21.80 213.67 15.38 12.18
35+
22.14 176.97 28.58 18.57
36+
22.73 193.11 27.64 19.05
37+
23.66 176.63 18.67 16.74
38+
24.82 198.42 6.50 6.12

0 commit comments

Comments
 (0)