function m_lookEco(id, ndays)

if nargin < 2
	ndays = 7;
end

prop = readProperties(fullfile(getOasisPath, 'cfg', 'mooring.properties'));
lat = sscanf(getProperty(prop, [id '.latitude']), '%f');
lon = sscanf(getProperty(prop, [id '.longitude']), '%f');
if isempty(lat) | isempty(lon)
   loc = [];
else
   loc = getLocationString(lat, lon);
end

XLim = [now-numOfDays now];

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Read GPS
% Get todays date in YYYYDDD format
currentDate = now - numOfDays;
[year month day hour minute second] = datevec(currentDate);
jday = date2jul(currentDate);
yyyyddd = str2num(sprintf('%04i%03i', year, jday));

% 1. Get names of the eco files to be read
ecobbPath = fullfile(getOasisPath, id, 'ecobb');
gpsFiles = getfname(fullfile(gpsPath, '2*'));
gpsYD = str2num(gpsFiles);
good = find(gpsYD >= yyyyddd);
if isempty(good)
    warning(['No files were found within the last ' numOfDays ' days']);
    return
end
   
% Iterate throught the files
gpsData = [];
t = [];
for i = 1:length(good)
    % Get the year from the files name
    filename = deblank(gpsFiles(good(i), :));
    fileYear = str2num(filename(1:4));
    % Read the file into temporary buffer
    gpsBuf = readgps(fullfile(gpsPath, filename), 'garmin');
    % Get the date of each row
    t = [t; jul2date(gpsBuf(:, 1), fileYear)];
    gpsData = [gpsData; gpsBuf];
end