function [x,y,z,time,typedr]=hopsgui_extdrifters(filein)

%       USAGE: [x,y,z,time]=hopsgui_extdrfiters
%
%   Returns three matrix containing the x,y,z and time of the
%   trayectories. It also plot all the 
%   
% inputs:
%               filein -- the .nc file
% Outputs:      
%		 x,y,z - position of the trayectories ,xyz(time,drifters)
%		 time  - time the trayectories ,time(time,drifters)
%		 typeedr - type of the drifters
%
%  Pedro Velez (UIB), July 1999



x=getnc(filein,'trk_pos',[-1 -1 1],[-1 -1 1],1,1,2);
y=getnc(filein,'trk_pos',[-1 -1 2],[-1 -1 2],1,1,2);
z=getnc(filein,'trk_pos',[-1 -1 3],[-1 -1 3],1,1,2);
	%xyz(time,drifters) axis=lon,lat,depth
time=getnc(filein,'trk_time');
	%time(time,drifters)
typedr=getnc(filein,'trk_type');
