Skip to content

Commit

Permalink
Update scripts/names.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
LuEdRaMo committed Sep 3, 2024
1 parent 30b01bc commit 45035a4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/names.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ function main()
while !isempty(provdesig)
neo = String(pop!(provdesig))
radec = fetch_radec_mpc("designation" => neo)
filter!(radec) do r
hascoord(r.observatory) && !issatellite(r.observatory)
end
(length(radec) < 3 || numberofdays(radec) > 15.0) && continue
jplorbit = sbdb("des" => neo)["orbit"]
if numberofdays(radec) <= 15.0 &&
!any(map(r -> issatellite(r.observatory), radec)) &&
jplorbit["n_obs_used"] == length(radec) &&
isnothing(jplorbit["n_del_obs_used"]) &&
isnothing(jplorbit["n_dop_obs_used"])
if isnothing(jplorbit["n_del_obs_used"]) &&
isnothing(jplorbit["n_dop_obs_used"])
names[i] = neo
break
end
Expand Down

0 comments on commit 45035a4

Please sign in to comment.