function plotVectors(fname1, fname2, varargin)
% function plotVectors(fname, fname2, [scale], [elimPtFile])
% 
% read data from specified file, and plot vectors onto
% regional basemap; activates tooltip window to describe
% point information (PID, lat/lon, etc)
% 
% required inputs:
%   fname         vector file name (specify path relative to pwd)
% optional inputs:
%   scale         scale factor for vectors (default: 1)
%   elimPtFile    file containing PIDs for eliminated points
% outputs:
%   pid           name of points (PIDs)
%   pt            dimensions (#PID x 4)
%                   1-2 lat/long (deg)
%                   3   azimuth (deg)
%                   4   vector length (m)


close all; % close all open windows
NADCONpath; % supplement path with toolboxes needed for NADCON

% read datafile
[pid1,pt1] = readVectorFile(fname1);
[pid2,pt2] = readVectorFile(fname2);
% pt = [lat lon azim_in_deg vector_length_in_meters];

% set the region
C = strsplit(fname,'.');
if length(C)==5
    region = C{end-1};
else
    region = C{end};
end

figure
subplot(211)
[pid1,pt1] = replotVectors(pid1, pt1, region, varargin{:});
title(strrep(strrep(fname,'\','\\'),'_','\_'));
subplot(212)
[pid2,pt2] = replotVectors(pid2, pt2, region, varargin{:});
title(strrep(strrep(fname,'\','\\'),'_','\_'));

return
