function double_map(ABX,data2,dlab2,clim1,c_thresh,cmap1,cmap2,vdims,iinewfig)
%
if nargin<7, iinewfig=0; end
%if nargin<8, tsize=[5,3]; end
%if nargin<9, fname='Arial'; end
%if nargin<10, ptsize=14; end
%
cmap=[cmap1(1:2:64,:); cmap2(1:2:64,:)];
%
cext=diff(clim1); clim2=clim1(2) + [0,cext];
clim=[clim1(1),clim2(2)];
data=ABX.data;
ii_map2=find(data>c_thresh);
%%data=min(data,c_thresh);
Dmin=min(data2(:)); Dmax=max(data2(:)); Dext=Dmax-Dmin;
data(ii_map2)=clim2(1) + cext*(data2(ii_map2) - Dmin)/Dext;
ABX2=ABX; ABX2.data=data; ABX2.cmap=cmap; ABX2.clim=clim;
if iinewfig, figure; end
view5(ABX2,vdims,0,0);
%%imagesc(ABX.x,ABX.y,data,clim); colormap(cmap);
%%xlabel(ABX.xlab); ylabel(ABX.ylab);
%
%%plot_size(gca,'in',tsize(1),tsize(2));
% Plot colorbar and manipulate y-axis labels:

return

hc=mycolorbar2('vert',0);
ytick=get(hc,'Ytick'); ii=find(ytick>=clim1(2));
yy=get(hc,'YtickLabel');
Dtick=Dmin + Dext*(ytick(ii) - clim2(1))/diff(clim2);
ytick(ii)=Dtick; 
ytick_lab=[];
for j=1:ii(1)-1,
	ytick_lab=strvcat(ytick_lab,yy(j,:));
end
for j=ii(1):ii(end),
	ytick_lab=strvcat(ytick_lab,sprintf('%0.2f',ytick(j)));
end
set(hc,'YtickLabel',ytick_lab,'FontName',fname,'FontSize',ptsize, ...
	'FontWeight','Bold');
%
ax=gca; axes(hc);
ylabel([ABX.dlab,'/',dlab2]);
axes(ax);
%
% COPYRIGHT (c) 2008
% 
% Applied Research Laboratories, The University of Texas at Austin
% (ARL:UT)
% All rights reserved.
% 
% This material may be reproduced by or for the U.S. Government
% only. This notice must appear in all copies of this file and its
% derivatives. Further distribution outside the U.S. Government is
% prohibited without the explicit written authorization from the
% Director of the Environmental Sciences Laboratory, ARL:UT.
% 
% THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
% EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE
% IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
% PURPOSE, OR NONINFRINGEMENT.
% 
% IN NO EVENT WILL ARL:UT BE LIABLE FOR ANY DAMAGES WHATSOEVER ARISING
% OUT OF THE USE OR INABILITY TO USE THIS SOFTWARE, EVEN IF ARL:UT HAS
% BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
