pn='/nobackupp2/dmenemen/llc_4320/regions/CalSWOT/run_template4/MITgcm';
p1=[pn '/run_obcs_3600/'];
p2=[pn '/run/'];
orient tall, wysiwyg
for fld={'Eta','U','V','Salt','Theta','KPPhbl'}
    for t=0:300:17100
        f1=[p1 fld{1} '.' myint2str(t,10) '.data'];
        f2=[p2 fld{1} '.' myint2str(t,10) '.data'];
        e1=readbin(f1,[12800 9600]);
        e2=readbin(f2,[12800 9600]);
        clf
        subplot(311),mypcolor(e1'); colorbar
        title([fld{1} ' ' int2str(t)])
        subplot(312),mypcolor(e2'); colorbar
        subplot(313),mypcolor(e2'-e1'); colorbar
        pause(.01)
    end
end
fld={'W'};
cx=[-1 1]/50;
for t=0:300:17100
    f1=[p1 fld{1} '.' myint2str(t,10) '.data'];
    f2=[p2 fld{1} '.' myint2str(t,10) '.data'];
    e1=readbin(f1,[12800 9600],1,'single',50);
    e2=readbin(f2,[12800 9600],1,'single',50);
    clf
    subplot(311),mypcolor(e1'); caxis(cx), colorbar
    title([fld{1} ' ' int2str(t)])
    subplot(312),mypcolor(e2'); caxis(cx), colorbar
    subplot(313),mypcolor(e2'-e1'); caxis(cx), colorbar
    pause(.01)
end






%%%%%%%%%%%%%
cd /nobackupp2/dmenemen/llc_4320/regions/CalSWOT/run_template4/MITgcm/run
for t=0:600:3000
    for fld={'Eta','U','oceQsw','KPPhbl','V','oceSflux','PhiBot','W', ...
             'oceTAUX','Salt','oceFWflx','oceTAUY','Theta','oceQnet'}
        eval(['!ln -sf run_hour1_dt1/' fld{1} '.' myint2str(t,10) '.data ' ...
              fld{1} '.' myint2str(t/2,10) '.data'])
    end
end
t=3600
for fld={'Eta','U','oceQsw','KPPhbl','V','oceSflux','PhiBot','W', ...
         'oceTAUX','Salt','oceFWflx','oceTAUY','Theta','oceQnet'}
    eval(['!ln -sf run_hour1_dt1/' fld{1} '.' myint2str(t,10) '.data ' ...
          fld{1} '.' myint2str(t/2,10) '.data'])
end
