function [s, filename, pdffilename] = LoadMission(mission, gdata)
% takes gdata (a spreadsheet with all past diel cycle missions and meta
% data and outputs the data struct, s, filename, and pdf file name for
% saving.
% Ben Werb 6/3/24
gdata = table(gdata);
filename = char(gdata.Filename(mission));
load(filename, 's'); % .mat file
pdffilename = ['Mission_',num2str(gdata.MissionID(mission)),...
    '_Profiles_',num2str(gdata.StartProf(mission)),'_',...
    num2str(gdata.EndProf(mission)),'_Diel.pdf'];

end