% overplot_etl_8_panel
% plot selected etl params over scs data on ron brown 

% 
load etl.mat
year=2010;
day1=datenum(year,1,0);
pmaxx=datenum(now) - day1 +.25;
pminx=pmaxx-3.5;

etl.yday=etl.mday-day1;
pt1 = find(etl.yday > pminx);
addpath([matlabroot '/work/ships'])

% subplot(4,2,1);  %wnds
% subplot(4,2,2);   %wndd




subplot(4,2,1); % atmp
hold on; ax=axis;
line(etl.yday(pt1),etl.atmp(pt1),'LineStyle','--',...
    'Color','cyan'); 
axis(ax);

subplot(4,2,2); % sst
hold on; ax=axis; 
line(etl.yday(pt1),etl.sst(pt1),'LineStyle','--',...
    'Color','cyan'); 
axis(ax);
if isempty( strfind(title2,'etl') )
    title2=[title2 ' ESRL:cyan '];
    title(title2);
else
    disp(['title2 ' title2]);
end

subplot(4,2,3); % bpr
hold on;  
ax=axis;
line(etl.yday(pt1),etl.bpr_hpa(pt1),'LineStyle','--',...
'Color','cyan');
axis(ax)

subplot(4,2,4);  %hrh
hold on; ax=axis; 
line(etl.yday(pt1),etl.hrh(pt1),'LineStyle','--',...
    'Color','cyan');
axis(ax);

subplot(4,2,5); % swr
hold on; ax=axis;
gsw=find(etl.swr1(pt1) > 5);
line(etl.yday(pt1(gsw)),etl.swr1(pt1(gsw)),'LineStyle','--',...
    'Color','cyan'); 
gsw=find(etl.swr2(pt1) > 5);
line(etl.yday(pt1(gsw)),etl.swr2(pt1(gsw)), 'LineStyle',':',...
    'Color','cyan');
axis(ax);

subplot(4,2,6)   ; % lwr
hold on; ax=axis; 
lwrl3=line(etl.yday(pt1),etl.lwr1(pt1),'LineStyle','--',...
    'Color','cyan'); 
lwrl4=line(etl.yday(pt1),etl.lwr2(pt1),'LineStyle',':',...
    'Color','cyan'); 
axis(ax);

subplot(4,2,7);   % rainr
hold on; ax=axis;
line(etl.yday(pt1),etl.rain_mmhr(pt1),'LineStyle','--',...
    'Color','cyan'); 
axis(ax);



