function hs2dat=get_hs2(file_loc,ButtonName)
%Where the java resides to parse the HS2
   
   switch ButtonName,
     case 'Drifter_1'
      hs2cal='c:\oasisnt\oasis\cfg\hs2.h2000325.20011002';
     case 'Drifter_2'
      hs2cal='c:\oasisnt\oasis\cfg\hs2.h2010336.20010531';
     case 'Drifter_3'
      hs2cal='c:\oasisnt\oasis\cfg\hs2.h2010337.20010531';  
   end % switch
   
javaloc='java -cp c:\WINNT\Profiles\dracha\Desktop\hs2java\mbari.jar;c:\WINNT\Profiles\dracha\Desktop\hs2java\oasis.jar org.mbari.oasis.OasisHS2Processer';
file_name=sprintf('%shs2',file_loc);%what file
comp_file='c:\winnt\profiles\dracha\desktop\hs2compile';
javacom=sprintf('%s %s %s %s',javaloc,file_name,hs2cal,comp_file);
dos(javacom);
fid=fopen(comp_file);%open file
Dat_Loc=rm_oasis_header(fid);%remove the header
fseek(fid,(Dat_Loc),'bof');%start of the data
i=1;
while ~feof(fid) %read in the numbers
    X=fgetl(fid);
    hs2dat(:,i)=sscanf(X,'%f');
    i=i+1;
end;
fclose(fid);
hs2dat(1,:)=utc2sdn(hs2dat(1,:));
