Skip to content

Commit

Permalink
Merge pull request #20 from xzackli/new_columns_in_csv
Browse files Browse the repository at this point in the history
fix breaking bug caused by changes in CSV column format
  • Loading branch information
helgee authored Feb 13, 2024
2 parents 27d0130 + 0623cfe commit 67004c5
Show file tree
Hide file tree
Showing 3 changed files with 33,417 additions and 33,417 deletions.
26 changes: 13 additions & 13 deletions src/EarthOrientation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,18 @@ const columns = Dict(
:xp_err => 7,
:yp => 8,
:yp_err => 9,
:ΔUT1 => 11,
:ΔUT1_err => 12,
:lod => 13,
:lod_err => 14,
:dψ => 16,
:dψ_err => 17,
:dϵ => 18,
:dϵ_err => 19,
:dx => 20,
:dx_err => 21,
:dy => 22,
:dy_err => 23,
:ΔUT1 => 15,
:ΔUT1_err => 16,
:lod => 17,
:lod_err => 18,
:dψ => 20,
:dψ_err => 21,
:dϵ => 22,
:dϵ_err => 23,
:dx => 24,
:dx_err => 25,
:dy => 26,
:dy_err => 27,
)

"""
Expand All @@ -156,7 +156,7 @@ function EOParams(iau1980file::String, iau2000file::String)
eop = EOParams(date, mjd)
for field in fieldnames(EOParams)[6:end]
col = columns[field]
data = col < 20 ? data80 : data00
data = col < 24 ? data80 : data00
row = findfirst(isempty.(data[:,col])) - 1
push!(eop.lastdate, field => mjd[row])
setfield!(eop, field,
Expand Down
Loading

0 comments on commit 67004c5

Please sign in to comment.