;PRO GET_MASS
;
;PURPOSE: This script will open up the MASS files containing the CN2 values
;	  and dig out the values

pro get_mass

Mass_Dir='/a/pippin01/Volumes/u08/lsst/CPanalysis/MASS/'

Mass_files=['orig_turb_data0', 'orig_turb_data16', 'orig_turb_data4',$
'orig_turb_data1', 'orig_turb_data2','orig_turb_data8']


CN2=fltarr(6,1553)
Times=fltarr(5,1553)

for i=0, N_elements(Mass_files)-1 do begin

  readcol,Mass_Dir+Mass_files(i),date,time,CN2_temp,format='a,a,f'
  CN2(i,*)=CN2_temp

  for j=0, N_elements(time)-1 do begin
 
     time_arr=strsplit(time(j),':',/extract)
     date_arr=strsplit(date(j),'/',/extract)
     Times(0,j)=date_arr(1)
     Times(1,j)=date_arr(2)
     Times(2,j)=time_arr(0)
     Times(3,j)=time_arr(1)
     Times(4,j)=time_arr(2)

   endfor
endfor

stop
end


