function [lon,lat,year,month,day,hour,minit,sec]=get_gps(mstr,istr);

yymmdd=['05',mstr,istr];

GPSDIR='/home/howitt/adcp_nb/';
oneminfnm = ['onemin_', istr,'.nav'];
rawgpsfnm = [GPSDIR,'OC',yymmdd,'.00'];

%eval([' !scp sci2@april:/mnt/athena/Calliope/OC05', ...
% mstr,istr,'.00 /home/howitt/adcp_nb'])
eval([' !\cp /mnt/athena/Calliope/OC05',mstr,istr,'.00 /home/howitt/adcp_nb'])

eval(['!tail +2 ',rawgpsfnm,' > gps.tmp'])

eval(['!',GPSDIR,'proc_gps.pl < gps.tmp > ',oneminfnm]);

eval(['load ',oneminfnm]);
eval(['gps= ',oneminfnm(1:end-4),';']);

%check lat and lon values
lat=gps(:,7);
lon=gps(:,8);

aa=find(lon >= 0);
if ~isempty(aa)
gps(aa,:)=[];
end

% now reassign
year=gps(:,1);
month=gps(:,2);
day=gps(:,3);
hour=gps(:,4);
minit=gps(:,5);
sec=gps(:,6);

lat=gps(:,7);
lon=gps(:,8);