Skip to content

Commit

Permalink
Resolved Merge Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurphy6895 committed Aug 24, 2023
1 parent 19a4837 commit 8acaf2e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/space_index_sets/celestrak.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ function parse_files(::Type{Celestrak}, filepaths::Vector{String})
# Skip these to Simplify Parsing, Only Grab Dates with all Indices
file[i, 27] == "PRM" && continue

push!(vdate, jd_k)
push!(vjd, jd_k)
push!(vBSRN, trunc(file[i, 2]))
push!(vND, trunc(file[i, 3]))
push!(vkp, _round_Kp.(Tuple(float(file[i, j]) for j in 4:11)))
push!(vap, Tuple(trunc(file[i, j]) for j in 13:20))
push!(vkp, _round_Kp.([float(file[i, j]) for j in 4:11]))
push!(vap, [trunc(file[i, j]) for j in 13:20])
push!(vCp, float(file[i, 22]))
push!(vC9, float(file[i, 23]))
push!(vISN, trunc(file[i, 24]))
Expand Down Expand Up @@ -260,7 +260,7 @@ Get the observed F10.7 index (10.7-cm solar flux) [10⁻²² W / (M² ⋅ Hz)] f
"""
function space_index(::Val{:F10obs}, jd::Number)
obj = @object(Celestrak)
knots = obj.vdate
knots = obj.vjd
values = obj.vf107_obs
# Shift 8 Hours to Move Center of Interval to Midnight Since F10.7 Measurement occurs at 20:00 UTC
jd_shift = jd - 8.0/24.0
Expand Down Expand Up @@ -304,9 +304,9 @@ Get the observed F10.7 index (10.7-cm solar flux) [10⁻²² W / (M² ⋅ Hz)] a
last 81 days from the `instant` (UTC).
"""
function space_index(::Val{:F10obs_avg_last81}, jd::Number)
obj = @object(Celestrak)
knots = obj.vjd
values = obj.vf107_obs_avg_last81
obj = @object(Celestrak)
knots = obj.vjd
values = obj.vf107_obs_avg_last81
# Shift 8 Hours to Move Center of Interval to Midnight Since F10.7 Measurement occurs at 20:00 UTC
jd_shift = jd - 8.0/24.0
return constant_interpolation(knots, values, jd_shift)
Expand All @@ -319,9 +319,9 @@ Get the adjusted F10.7 index (10.7-cm solar flux) [10⁻²² W / (M² ⋅ Hz)] a
days centered for the `instant` (UTC).
"""
function space_index(::Val{:F10adj_avg_center81}, jd::Number)
obj = @object(Celestrak)
knots = obj.vjd
values = obj.vf107_adj_avg_center81
obj = @object(Celestrak)
knots = obj.vjd
values = obj.vf107_adj_avg_center81
# Shift 8 Hours to Move Center of Interval to Midnight Since F10.7 Measurement occurs at 20:00 UTC
jd_shift = jd - 8.0/24.0
return constant_interpolation(knots, values, jd_shift)
Expand All @@ -334,9 +334,9 @@ Get the adjusted F10.7 index (10.7-cm solar flux) [10⁻²² W / (M² ⋅ Hz)] a
last 81 days from the `instant` (UTC).
"""
function space_index(::Val{:F10adj_avg_last81}, jd::Number)
obj = @object(Celestrak)
knots = obj.vjd
values = obj.vf107_adj_avg_last81
obj = @object(Celestrak)
knots = obj.vjd
values = obj.vf107_adj_avg_last81
# Shift 8 Hours to Move Center of Interval to Midnight Since F10.7 Measurement occurs at 20:00 UTC
jd_shift = jd - 8.0/24.0
return constant_interpolation(knots, values, jd_shift)
Expand Down

0 comments on commit 8acaf2e

Please sign in to comment.