%make_sv_1_image.m

%NOTE: don't forget to make the "make104_...._image.m files

close all;fclose all;clear all;

%oad d228_am_sv_corr_patches
load nbp103_138;

img = sv_1(:,8:407)';
img = 10*log10(img);
yaxlab=(0:1.5:599);
%xaxlab = (10:10:6420);
xaxlab=sv_1(:,1);

figure
set(gcf,'units','normalized');

imagesc(xaxlab,yaxlab,img);
%imagesc(img);
xlabel('time');
ylabel('depth');

set(gca,'dataaspectratio',[1 5000 1])
set(gca,'units','normalized');   %not really needed


lasttime = size(img,2);
dtime = sv_1(lasttime,1) - sv_1(1, 1);



firstx = .05;
%%%set(   gcf,'pos',[firstx  50   firstx+dtime*2000   200]   );
%%%set(   gcf,'pos',[firstx  50   firstx+1024   200]   );

set(   gcf,'pos',[firstx  .05   firstx+0.750   0.400]   );


%NOTE:  needs definite improvement!!!
%disp('press any key to make a jpg file');
%pause

%print -djpeg nbp103_137.jpg

%return


%figure
%plot(sv_1(:,2),sv_1(:,3))
%grid on

