Skip to content

Commit

Permalink
Fix NEOCP test
Browse files Browse the repository at this point in the history
  • Loading branch information
LuEdRaMo committed Dec 6, 2024
1 parent 799e05f commit b73f457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/observations/neocp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ function NEOCPObject(dict::Dict{String, Any})
year = Int(dict["Discovery_year"])
month = Int(dict["Discovery_month"])
day = Float64(dict["Discovery_day"])
day_i = floor(Int, day)
day_i = clamp(floor(Int, day), 1, daysinmonth(Date(year, month)))
utc = day - day_i
date = DateTime(year, month, day_i) + Microsecond( round(1e6*86_400*utc) )
date = DateTime(year, month, day_i) + Microsecond( round(1e6*daysec*utc) )
# Right ascension [rad]
α = deg2rad(Float64(dict["R.A."]) * 15)
# Declination [rad]
Expand Down

0 comments on commit b73f457

Please sign in to comment.