function [st_time, en_time]=get_med(cast)
% get_med.m - loads in medusa data

if cast == 1
  load ../medusa/med001.flt
  sam=med001;
  day = 242;
elseif cast == 2
  load ../medusa/med002.flt
  sam=med002;
  day = 243;
elseif cast == 3
  load ../medusa/med003.flt
  sam=med003;
  day = 244;
elseif cast == 4
  load ../medusa/med004.flt
  sam=med004;
  day = 245;
elseif cast == 6
  load ../medusa/med006.flt
  sam=med006;
  day = 246;
elseif cast == 7
  load ../medusa/med007.flt
  sam=med007;
  day = 247;
elseif cast == 8
  load ../medusa/med008.flt
  sam=med008;
  day = 248;
elseif cast == 9
  load ../medusa/med009.flt
  sam=med009;
  day = 250;
elseif cast == 10
  load ../medusa/med010.flt
  sam=med010;
  day = 251;
elseif cast == 11
  load ../medusa/med011.flt
  sam=med011;
  day = 252;
elseif cast == 13
  load ../medusa/med013.flt
  sam=med013;
  day = 253;
else
  error('fix get_med for this cast')
end

evt=sam(:,1);

st_mon=sam(:,2);
st_day=sam(:,3);
st_yr=sam(:,4);
st_hh=sam(:,5);
st_mm=sam(:,6);
st_ss=sam(:,7);
% 8 & 9 are volts
temp=sam(:,10);
port = sam(:,11);
ml=sam(:,12);
sec_p=sam(:,13);
en_mon=sam(:,14);
en_day=sam(:,15);
en_yr=sam(:,16);
en_hh=sam(:,17);
en_mm=sam(:,18);
en_ss=sam(:,19);


st_time=day+st_hh/24+st_mm/24/60+st_ss/24/60/60;
en_time=day+en_hh/24+en_mm/24/60+en_ss/24/60/60;

