function dat = ep_hflf_combine(ep) % EP_HFLF_COMBINE - Combine Low frequency and high frequecny data sets from ep mooring % % Use as: dat = ep_hflf_combine(ep) % % Inputs: ep = number of eqpac mooring (1 or 2) % % Output: dat = array containing the combined HF and LF data, The data in each % Column are the same as the HF specprr data file. % Brian Schlining % 31 Aug 1999 ep_ini; if ep == 1 lon = ep1.east_longitude; else lon = ep2.east_longitude; end hf = readoasis(['\\tornado\brian\mooring\eqpac\ep' num2str(ep) '\data\specprr']); % Get HF data hf = avgoasis2(hf,lon); hd = jul2date(hf(:,1),hf(:,end)); lf = ep_ordering(ep); % Get LF data ordered same as HF data ld = jul2date(lf(:,1),lf(:,end)); lastHF = nanmax(hd); goodLF = find(ld > lastHF); dat = [hf; lf(goodLF,:)];