I think I've finished my first revision
This commit is contained in:
@@ -2,6 +2,7 @@ using Thesis
|
||||
using SPICE
|
||||
using LinearAlgebra
|
||||
using Dates
|
||||
using PlotlyJS
|
||||
|
||||
try
|
||||
furnsh("../../spice_files/naif0012.tls")
|
||||
@@ -48,16 +49,59 @@ end
|
||||
sorted_missions1 = sort(missions, by=cost_1)
|
||||
sorted_missions2 = sort(missions, by=cost_2)
|
||||
|
||||
println(get_id.(sorted_missions1[1:10]))
|
||||
println(get_id.(sorted_missions2[1:10]))
|
||||
println(get_id.(sorted_missions1[1:5]))
|
||||
println(get_id.(sorted_missions2[1:5]))
|
||||
|
||||
display_mission = improve(sorted_missions2[1], n=7)
|
||||
# display(plot(display_mission,
|
||||
# long, short = improve.(sorted_missions2[1:2], n=7)#, use_cost=true)
|
||||
display_mission = long
|
||||
|
||||
# Display Orbit Plot
|
||||
# display(Thesis.plot(long,
|
||||
# title="Sample Algorithm Result Mission",
|
||||
# mode="light",
|
||||
# planet_colors=false,
|
||||
# phase_colors=["#F00","#F0F","#6AF"],
|
||||
# markers=false));
|
||||
display(plot_thrust(display_mission, title="Thrust Magnitude vs Time", mode="light"))
|
||||
display(plot_thrust_components(display_mission, title="Thrust Components vs Time", mode="light"))
|
||||
# markers=false,
|
||||
# camera=((-0.2, -0.3, -0.2),(1.75,-1.75,1.5))));
|
||||
|
||||
# Save Orbit Plot
|
||||
savefig(Thesis.plot(short, title="EMS Mission Profile", mode="light", planet_colors=false,
|
||||
phase_colors=["#F00","#F0F","#6AF"], markers=false,
|
||||
camera=((-0.2, 0.1, -0.3),(-2.,-2.,1.))),
|
||||
"/home/connor/projects/thesis/LaTeX/fig/EMS_plot.png",
|
||||
width=850, height=400)
|
||||
savefig(Thesis.plot(short, title="EMS Mission Profile", mode="light", planet_colors=false,
|
||||
phase_colors=["#F00","#F0F","#6AF"], markers=false, planets=false,
|
||||
camera=((-0.2, 0.1, -0.3),(-2.,-2.,1.))),
|
||||
"/home/connor/projects/thesis/LaTeX/fig/EMS_plot_noplanets.png",
|
||||
width=850, height=400)
|
||||
savefig(Thesis.plot(long, title="EMS Mission Profile", mode="light", planet_colors=false,
|
||||
phase_colors=["#F00","#F0F","#6AF"], markers=false,
|
||||
camera=((-0.2, -0.3, -0.2),(1.75,-1.75,1.5))),
|
||||
"/home/connor/projects/thesis/LaTeX/fig/EMJS_plot.png",
|
||||
width=850, height=400)
|
||||
savefig(Thesis.plot(long, title="EMS Mission Profile", mode="light", planet_colors=false,
|
||||
phase_colors=["#F00","#F0F","#6AF"], markers=false, planets=false,
|
||||
camera=((-0.2, -0.3, -0.2),(2.,-2.,1.5))),
|
||||
"/home/connor/projects/thesis/LaTeX/fig/EMJS_plot_noplanets.png",
|
||||
width=850, height=400)
|
||||
# Display Thrust Plots
|
||||
# display(plot_thrust(display_mission, title="Thrust Magnitude vs Time", mode="light"))
|
||||
# display(plot_thrust_components(display_mission, title="Thrust Components vs Time", mode="light"))
|
||||
|
||||
# Save Thrust Plots
|
||||
savefig(plot_thrust(short, title="Thrust Magnitude vs Time", mode="light"),
|
||||
"/home/connor/projects/thesis/LaTeX/fig/EMS_thrust_mag.png",
|
||||
width=850, height=400)
|
||||
savefig(plot_thrust_components(short, title="Thrust Components vs Time", mode="light"),
|
||||
"/home/connor/projects/thesis/LaTeX/fig/EMS_thrust_components.png",
|
||||
width=850, height=400)
|
||||
savefig(plot_thrust(long, title="Thrust Magnitude vs Time", mode="light"),
|
||||
"/home/connor/projects/thesis/LaTeX/fig/EMJS_thrust_mag.png",
|
||||
width=850, height=400)
|
||||
savefig(plot_thrust_components(long, title="Thrust Components vs Time", mode="light"),
|
||||
"/home/connor/projects/thesis/LaTeX/fig/EMJS_thrust_components.png",
|
||||
width=850, height=400)
|
||||
|
||||
# Save mission
|
||||
# store(display_mission, "/home/connor/projects/thesis/archive/best/long_mission")
|
||||
|
||||
Reference in New Issue
Block a user