Skip to content

Commit 7703227

Browse files
authored
Admissible Region Inner Boundary (#69)
* Update constants.jl * AbstractFloat --> Real in admissibleregion.jl * Add arG(::AdmissibleRegion{T}, ::S) * Update arenergycoeffs and arenergydis * Update rangerate * Update argoldensearch * Update maxrange * Update boundary * Update NEOsRecipesBaseExt.jl * Solve rangerate ambiguity * Add tests * Bump patch version
1 parent 8f1a664 commit 7703227

File tree

5 files changed

+297
-100
lines changed

5 files changed

+297
-100
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "NEOs"
22
uuid = "b41c07a2-2abb-11e9-070a-c3c1b239e7df"
33
authors = ["Jorge A. Pérez Hernández", "Luis Benet", "Luis Eduardo Ramírez Montoya"]
4-
version = "0.8.6"
4+
version = "0.8.7"
55

66
[deps]
77
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"

ext/NEOsRecipesBaseExt.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ module NEOsRecipesBaseExt
22

33
using RecipesBase
44
using PlanetaryEphemeris: TaylorInterpolant
5-
using NEOs: OpticalResidual, AdmissibleRegion, NEOSolution, cte, ra, dec, boundary
5+
using NEOs: OpticalResidual, AdmissibleRegion, NEOSolution, cte, ra, dec, arboundary
66

77
@recipe function f(res::AbstractVector{OpticalResidual{T, U}}) where {T <: Real, U <: Number}
88
seriestype --> :scatter
99
return cte.(ra.(res)), cte.(dec.(res))
1010
end
1111

12-
@recipe function f(A::AdmissibleRegion{T}; N::Int = 100, ρscale::Symbol = :linear) where {T <: Real}
12+
@recipe function f(A::AdmissibleRegion{T}; boundary::Symbol = :outer,
13+
N::Int = 100, ρscale::Symbol = :linear) where {T <: Real}
1314
seriestype --> :path
14-
ps = map(t -> boundary(A, t), LinRange(0, 3, N))
15+
tmax = boundary == :outer ? 3 : 2
16+
ps = map(t -> arboundary(A, t, boundary), LinRange(0, tmax, N))
1517
xs, ys = first.(ps), last.(ps)
1618
if ρscale == :log
1719
xs .= log10.(xs)

src/constants.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,6 @@ const k_gauss = 0.017_202_098_95
203203
# Earth's sphere of influence radius [AU]
204204
const R_SI = 0.010044
205205
# Earth's physical radius [AU]
206-
const R_EA = 4.2e-5
206+
const R_EA = 4.24e-5
207+
# Ratio between the mass of the Earth and the mass of the Sun
208+
const μ_ES = PE.μ[ea] / PE.μ[su] # 1 / 328_900.5614

0 commit comments

Comments
 (0)