Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update interpolations #62

Merged
merged 2 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"
Artifacts = "<0.0.1, 1"
Dates = "<0.0.1, 1"
DelimitedFiles = "<0.0.1, 1"
Interpolations = "0.13, 0.14"
Interpolations = "0.13, 0.14, 0.15"
julia = "1.7, 1.8, 1.9"
8 changes: 4 additions & 4 deletions src/Insolation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export orbital_params
"""
OrbitalData

The parameters vary due to Milankovitch cycles.
The parameters vary due to Milankovitch cycles.

Orbital parameters from the Laskar 2004 paper are
lazily downloaded from Caltech Box to the
Expand All @@ -31,11 +31,11 @@ function OrbitalData()
x, _ = readdlm(datapath, ',', Float64, header = true)
t_range = (x[1, 1] * 1e3):1e3:(x[end, 1] * 1e3) # array of every 1 kyr to range of years
e_spline_etp =
CubicSplineInterpolation(t_range, x[:, 2], extrapolation_bc = NaN)
cubic_spline_interpolation(t_range, x[:, 2], extrapolation_bc = NaN)
γ_spline_etp =
CubicSplineInterpolation(t_range, x[:, 3], extrapolation_bc = NaN)
cubic_spline_interpolation(t_range, x[:, 3], extrapolation_bc = NaN)
ϖ_spline_etp =
CubicSplineInterpolation(t_range, x[:, 4], extrapolation_bc = NaN)
cubic_spline_interpolation(t_range, x[:, 4], extrapolation_bc = NaN)

E = typeof(e_spline_etp)
G = typeof(γ_spline_etp)
Expand Down
Loading