亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? fold.m

?? 地震中常用的一些偏移程序
?? M
字號:
function fold(arg)

% Computes depth of detachment with least
% squares fit to x,y points, where x is the
% depth of datum relative to polygon and y
% is the area of the polygon.
% Polygons are digitized in seisline, and
%  input to fold via extract_vector.        
%
%  T. N. BISHOP,  OCTOBER 1993,
%  G. F. MARGRAVE,  OCTOBER 1993,
%
% NOTE: It is illegal for you to use this software for a purpose other
% than non-profit education or research UNLESS you are employed by a CREWES
% Project sponsor. By using this software, you are agreeing to the terms
% detailed in this software's Matlab source file.
 
% BEGIN TERMS OF USE LICENSE
%
% This SOFTWARE is maintained by the CREWES Project at the Department
% of Geology and Geophysics of the University of Calgary, Calgary,
% Alberta, Canada.  The copyright and ownership is jointly held by 
% its author (identified above) and the CREWES Project.  The CREWES 
% project may be contacted via email at:  crewesinfo@crewes.org
% 
% The term 'SOFTWARE' refers to the Matlab source code, translations to
% any other computer language, or object code
%
% Terms of use of this SOFTWARE
%
% 1) Use of this SOFTWARE by any for-profit commercial organization is
%    expressly forbidden unless said organization is a CREWES Project
%    Sponsor.
%
% 2) A CREWES Project sponsor may use this SOFTWARE under the terms of the 
%    CREWES Project Sponsorship agreement.
%
% 3) A student or employee of a non-profit educational institution may 
%    use this SOFTWARE subject to the following terms and conditions:
%    - this SOFTWARE is for teaching or research purposes only.
%    - this SOFTWARE may be distributed to other students or researchers 
%      provided that these license terms are included.
%    - reselling the SOFTWARE, or including it or any portion of it, in any
%      software that will be resold is expressly forbidden.
%    - transfering the SOFTWARE in any form to a commercial firm or any 
%      other for-profit organization is expressly forbidden.
%
% END TERMS OF USE LICENSE

% parse the input arguments
	if( nargin < 1 )
		action = 'initialize';
	else
		action = arg;
	end

if( strcmp( action, 'initialize' ) )

	% make a new figure
	hfig = figure;
	
	% make a dummy handle for the second and third figure
	hfig2=-1;
	hfig3=-1;

	%  get the figure's size
	pos = get( hfig,'Position');
	figx=pos(1);figy=pos(2);
	figwidth=400;figheight=150;

	% reset the size
	set( hfig,'position',[figx,figy,figwidth,figheight]);

	% put a title at the top with a blank string for now
	% all absolute positions and sizes are in pixels

	height = 30;
	sep = 2;
	xnow=5;
	width = figwidth-2*xnow;
	ynow = figheight - height - sep;
	
	htitle = uicontrol('style','text','string','New Analysis','position',...
		[xnow,ynow,width,height]);

	% an action popup
	xnow=5;
	ynow=ynow-height-sep;
	width=50;
	height=30;
	hactionLabel = uicontrol('style','text','string','Action:','position',...
		[xnow,ynow,width,height]);

	xnow=xnow+width+sep;
	width=150;
	haction=uicontrol('style','popupmenu','string',...
		'Read from Disk| Pick Regionals | Edit Horizons','position',...
		[xnow,ynow,width,height']);

	% a horizons popup
	xnow=xnow+width+sep;
	width=70;
	height=30;
	hhorizonLabel = uicontrol('style','text','string','Horizons:','position',...
		[xnow,ynow,width,height]);

	xnow=xnow+width+sep;
	width=150;
	hhorizon=uicontrol('style','popupmenu','string',...
		'No Horizons','position',...
		[xnow,ynow,width,height']);

	% a file name entry field
	xnow=5;
	ynow=ynow-height-sep;
	width=65;
	hfileLabel=uicontrol('style','text','string','Filename:','Position',...
		[xnow,ynow,width,height]);

	xnow=xnow+width+sep;
	width = figwidth-3*sep-2*width;
	hfile=uicontrol('style','edit','string','???.dat','Position',...
		[xnow,ynow,width,height],'callback','fold(''input'')');
	
	% a graph button

	xnow= 5;
	width=50;
	ynow=ynow-height-sep;
	hgraph = uicontrol('style','pushbutton','string','Graph','position',...
		[xnow,ynow,width,height],'callback','fold(''graph'')');	

	% a quit button

	xnow = xnow+width+sep;
	hquit = uicontrol('style','pushbutton','string','Quit','position',...
		[xnow,ynow,width,height],'callback','fold(''quit'')');

	% now store all handles in the figures userdata

	set(hfig,'userdata',[htitle,hactionLabel,haction,hhorizonLabel,...
		hhorizon,hfileLabel, hfile, hgraph, hquit, hfig2, hfig3]);

end

% read information from disk
if( strcmp(action,'input') )
	% get the disk file name
	h=get(gcf,'userdata');
	hfile=h(7);
	fileName = get(hfile,'string');
	
	% read the file
	obj = readSeislineVec(fileName);

	% see if the fielname was valid
	if(isempty(obj))
		set(hfile,'string','File Not Found');
		return;
	end
        
        % compute initial datum
        
	[m,n]=size(obj);
	nhor = (n-1)/2;
        smin=Inf; smax=-smin;
        tmin=Inf; tmax=-tmin;
        for k=1:nhor
          horizon=objget(obj,2*k);
          sdist=objget(obj,2*k-1);
	  ind = ~isnan(horizon);
	  horizon = horizon(ind);
	  sdist = sdist(ind);
          tmin = min([horizon(:);tmin]);
          tmax = max([horizon(:);tmax]);
          smin = min([sdist(:);smin]);
          smax = max([sdist(:);smax]);
        end
	
	% enlarge window by making datum deeper & wider
        dels = smax-smin;
        td = tmin - .2 * (tmax-tmin);
	smin = smin - .2 * dels;
	smax = smax + .2 * dels;

        % store datum in horizon label
	hhorlabel = h(4);
	set(hhorlabel,'userdata',[smin, td, smax, td]);
        
	% load up the horizon popup
	
	hhorizon = h(5);

	horNames = 'horizon 1|';
	for k=2:nhor
		temp = sprintf('horizon %d|',k);
		horNames = setstr([horNames temp]);
	end
	
	set(hhorizon, 'string',horNames);

	% store the object as user data of the title object

	h=get(gcf,'userdata');	

	htitle = h(1);

	set(htitle,'userdata',obj);

	set(htitle,'string',objget(obj,'name'));

	fold('plot');

	fold('area');

	return;

end

if( strcmp(action,'area') )

% get the vector of uicontrol handles
	hfig1=gcf;
	h=get(hfig1,'userdata');
	if( length(h) < 8)
		hfig1 = h(1);
		h = get(hfig1,'userdata');
	end

% get the data object from the title uicontrol
	htitle=h(1);

	obj = get(htitle,'userdata');

% get the datum from the horizon label
	hhorizonLabel=h(4);
	datum = get(hhorizonLabel,'userdata');

	[nrow,ncol]=size(obj);
	nhors = (ncol-1)/2;

        area = zeros(1,nhors);
        dist = zeros(1,nhors);
	for k=1:nhors
		x = objget(obj,2*k-1);
		y = objget(obj,2*k);
		ind = ~isnan(x);
		x=x(ind);
		y=y(ind);
%
%  	plot with correct color
	    	if(rem(k,6) == 1), icol='y'; end
	    	if(rem(k,6) == 2), icol='m'; end
	    	if(rem(k,6) == 3), icol='c'; end
	    	if(rem(k,6) == 4), icol='r'; end
	    	if(rem(k,6) == 5), icol='g'; end
	    	if(rem(k,6) == 6), icol='b'; end
		icolsym = [icol,'*'];

		dist(k) = polydist( x,y,datum,icol);
		area(k) = polyarea( x,y,20,icolsym);
		if( k==1 ) hold; end
                fprintf('dist= %10.1f   area= %12.1f\n',dist(k),area(k));
	end
        fprintf('finished with distance and area calculations\n');

        gca;
        set(gca,'xlabel',text(0,0,'INLINE DISTANCE'));
        set(gca,'ylabel',text(0,0,'DEPTH'));

	% set the horizon labels user data
	set(hhorizonLabel,'userdata',[datum(1:4) area dist]);

end

if( strcmp(action,'graph') )

% get the vector of uicontrol handles
	hfig1=gcf;
	h=get(hfig1,'userdata');
	if( length(h) < 8)
		hfig1 = h(1);
		h = get(hfig1,'userdata');
	end

% get the data object from the title uicontrol
	htitle=h(1);

	obj = get(htitle,'userdata');

% get the area and distances from the horizon label

	[nrow,ncol]=size(obj);
	nhors = (ncol-1)/2;
        area = zeros(1,nhors);
        dist = zeros(1,nhors);
	hhorizonLabel=h(4);
	temp = get(hhorizonLabel,'userdata');
        datum = temp(1:4);
	area = temp(5:nhors+4);
	dist = temp(nhors+5:2*nhors+4);

       
% get the vector of uicontrol handles
	hfig1=gcf;
	h=get(hfig1,'userdata');
% make the plot window active
	hfig3 = h(11);
	if( hfig3 < 0)   %figure 3 window not open yet
		hfig3=figure;
		h(11)=hfig3;
		set(hfig1,'userdata',h);
		set(hfig3,'userdata',hfig1);
	else
		figure(hfig3);
	end

% plot the dist vs area
        p = polyfit(dist,area,1);
        xint = -p(2)/p(1);
        slope = p(1);
        fprintf('true detachment depth (datum = 0) = %10.1f \n',xint);
        fprintf('displacement on lower detachment  = %10.1f \n',slope);
        xhat = [xint  max(dist)];
        yhat = polyval(p,xhat);
% best fit line is y = m*x + b  where m = p(1), b = p(2)
% where x-intercept = (-b/m,0) = -p(2)/p(1) = true detachment depth
% where slope = m = p(1) = displacement on the lower detachment
        pltxmin = min(xint, min(0, min(dist)));
        pltxmax = max(dist);
        pltymin = min(yhat(1), 0);
        pltymax = max(yhat(2), max(area));
        axis([pltxmin pltxmax pltymin pltymax]);
	dist = ones(2,1)*dist;
	area = ones(2,1)*area;
        plot(dist,area,'*',xhat,yhat,'-.w')
        gca;
        set(gca,'xlabel',text(0,0,'DEPTH'));
        set(gca,'ylabel',text(0,0,'EXCESS AREA'));

% make the plot window active
        hfig2 = h(10);
	figure(hfig2);
      
        detach = datum;
%         detachment (relative to datum) = xintercept
	detach(2) = detach(2) + xint;
	detach(4) = detach(4) + xint;
        xind = [1 3];
        yind = [2 4];
        plot(detach(xind),detach(yind),'w')

	ss  = '                   detachment';
	h=text(detach(1),detach(2),ss,'VerticalAlignment',...
                'bottom','Color','w');

	ss2 = '                 reference level'; 
	h2=text(datum(1),datum(2),ss2,'VerticalAlignment',...
                'bottom','Color','y');

%         detachment displacement is slope
	detach(1) = detach(3) - abs(slope); 
        plot(detach(xind),detach(yind),'g')
        plot(detach(xind),detach(yind),'gx')
        ss3 = ['D = ',num2str(slope)];
	h=text(detach(1),detach(2),ss3,'VerticalAlignment',...
                'bottom','Color','g');

end



if( strcmp(action,'plot') )

% get the vector of uicontrol handles
	hfig1=gcf;
	h=get(hfig1,'userdata');

% make the plot window active
	hfig2 = h(10);
	if( hfig2 < 0)
		hfig2=figure;
		h(10)=hfig2;
		set(hfig1,'userdata',h);
		set(hfig2,'userdata',hfig1);
	else
		figure(hfig2);
	end

% get the datum from the horizon label
	hhorizonLabel=h(4);
	datum = get(hhorizonLabel,'userdata');
        indx = [1 3];
        indy = [2 4];
	plot(datum(indx),datum(indy))

% get the data object from the title uicontrol
	htitle=h(1);

	obj = get(htitle,'userdata');

	[nrow,ncol]=size(obj);
	nhors = (ncol-1)/2;

	nr = objget(obj,'datarows');
	nc = objget(obj,'datacols');
	m =max([nr nc]);
	x=zeros(m,nhors);
	y=zeros(m,nhors);
	for k=1:nhors
		x(:,k) = objget(obj,2*k-1);
		y(:,k) = objget(obj,2*k);

	end

        hold on;
	plot(x,y)

%	hold off;

end

if( strcmp(action,'quit') )
% get the vector of handles
	h = get(gcf,'userdata');

% get figure 2
	hfig2 = h(10);
	if(hfig2 > 0)
	  close(hfig2);
	end

% get figure 3
	hfig3 = h(11);
	if(hfig3 > 0)
	  close(hfig3);
	end

% close the current figure

	close(gcf);
end

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜免费久久看| 国产日韩欧美一区二区三区乱码 | 欧美亚洲丝袜传媒另类| √…a在线天堂一区| 91美女在线观看| 一区二区三区色| 欧美精品乱码久久久久久按摩| 亚洲一线二线三线视频| 欧美精品乱码久久久久久按摩| 国产精品丝袜久久久久久app| 99在线精品一区二区三区| 一区二区三区国产精品| 欧美丰满少妇xxxbbb| 狠狠色丁香久久婷婷综合丁香| 国产偷国产偷精品高清尤物 | 青青草原综合久久大伊人精品优势| 欧美一区二区三区免费在线看| 麻豆精品蜜桃视频网站| 国产午夜亚洲精品午夜鲁丝片 | 91久久奴性调教| 三级不卡在线观看| 久久美女高清视频| 日本丶国产丶欧美色综合| 日韩电影一二三区| 亚洲国产精品传媒在线观看| 在线亚洲高清视频| 国产精品69久久久久水密桃| 亚洲人成精品久久久久久| 欧美一区二区三区视频免费| 成人黄色在线网站| 图片区日韩欧美亚洲| 国产偷国产偷精品高清尤物| 欧美日韩视频不卡| 国产乱淫av一区二区三区| 一区二区三区在线观看动漫| 日韩精品一区二区三区中文不卡 | 久久久久久久精| 欧美视频中文字幕| 国产精品18久久久久久久网站| 亚洲高清不卡在线| 欧美激情艳妇裸体舞| 欧美一区二区三区在线观看| www.综合网.com| 精品中文av资源站在线观看| 亚洲一区二区视频| 欧美国产成人精品| 日韩欧美精品在线视频| 欧美色视频在线观看| 岛国精品在线播放| 极品瑜伽女神91| 日韩激情在线观看| 一区二区三区国产精品| 国产精品国模大尺度视频| 精品盗摄一区二区三区| 午夜精品福利在线| 在线观看欧美黄色| 国产一区二区三区久久悠悠色av| 成人免费观看男女羞羞视频| 在线观看91精品国产入口| 18欧美亚洲精品| 欧美亚洲动漫精品| 精品国产污网站| 久久精品99久久久| 亚洲免费视频中文字幕| 国产日产亚洲精品系列| 欧美精品一区二区不卡| 欧美一区二区视频在线观看2020 | 麻豆精品久久精品色综合| 亚洲国产日韩综合久久精品| 中文字幕亚洲不卡| 国产精品久久久久影院色老大 | 91精品国产免费| 欧美日韩激情一区二区三区| 在线免费一区三区| 91传媒视频在线播放| 91麻豆福利精品推荐| 91日韩在线专区| 91行情网站电视在线观看高清版| 91麻豆精东视频| 色综合久久久网| 色国产精品一区在线观看| 91年精品国产| 欧美性大战xxxxx久久久| 欧美人与z0zoxxxx视频| 在线观看91精品国产麻豆| 777精品伊人久久久久大香线蕉| 欧美二区在线观看| 日韩免费看的电影| 久久综合九色综合欧美98| 国产视频一区二区在线观看| 欧美经典一区二区三区| 亚洲欧洲成人精品av97| 亚洲精品网站在线观看| 亚洲成av人**亚洲成av**| 丝袜脚交一区二区| 久88久久88久久久| 国产二区国产一区在线观看| 成人的网站免费观看| 色狠狠一区二区| 91超碰这里只有精品国产| 精品不卡在线视频| 中文字幕在线不卡视频| 亚洲资源在线观看| 看片网站欧美日韩| 成人性生交大合| 欧美婷婷六月丁香综合色| 欧美videos大乳护士334| 国产欧美一区二区精品仙草咪| 亚洲欧洲日产国码二区| 亚洲成av人片| 成人综合在线视频| 欧美日韩亚洲另类| 久久久久久9999| 亚洲综合图片区| 韩国成人精品a∨在线观看| www.激情成人| 欧美一级国产精品| 中文字幕中文字幕在线一区| 日韩经典一区二区| av网站免费线看精品| 欧美一区二区三区成人| 国产精品免费久久| 免费在线观看成人| 色综合婷婷久久| 2023国产精华国产精品| 亚洲精品国产精华液| 国产精品一区在线观看乱码| 在线亚洲免费视频| 亚洲国产精品v| 老司机免费视频一区二区| 99精品欧美一区二区三区小说| 日韩欧美一级精品久久| 亚洲免费av网站| 国产不卡高清在线观看视频| 日韩一区二区麻豆国产| 亚洲乱码一区二区三区在线观看| 狠狠色丁香久久婷婷综| 欧美日韩国产精品自在自线| 成人免费在线观看入口| 国产一区二区三区日韩| 91精品国产色综合久久| 亚洲综合丁香婷婷六月香| 成人黄色a**站在线观看| 精品国产乱码久久久久久免费| 亚洲一区在线看| 91女厕偷拍女厕偷拍高清| 国产日韩亚洲欧美综合| 狠狠色狠狠色合久久伊人| 91精品国产综合久久精品图片| 亚洲一区二区欧美| 日本久久一区二区三区| 国产精品成人在线观看| 懂色一区二区三区免费观看| 精品国产91洋老外米糕| 美腿丝袜亚洲综合| 欧美高清视频www夜色资源网| 一区二区三区免费看视频| 99久久精品一区二区| 国产精品视频一区二区三区不卡| 精品中文av资源站在线观看| 精品国产免费一区二区三区香蕉| 免费看日韩精品| 日韩一区二区免费在线观看| 蜜桃视频一区二区| 91精品国产免费| 久久精品99久久久| 久久综合九色综合久久久精品综合| 韩国三级在线一区| 精品电影一区二区| 国产精品69久久久久水密桃| 国产亚洲综合在线| 精品无码三级在线观看视频| 亚洲精品在线观| 国产一区二区导航在线播放| 国产午夜精品一区二区三区视频 | 亚洲欧洲精品天堂一级| 不卡的av在线| 亚洲激情男女视频| 欧美三级电影精品| 美女精品自拍一二三四| 精品国产一区a| 国产成人精品www牛牛影视| 中文字幕av免费专区久久| av在线免费不卡| 亚洲永久免费av| 日韩视频免费观看高清完整版 | 欧美一级xxx| 国产老妇另类xxxxx| 国产精品伦一区二区三级视频| 92精品国产成人观看免费| 亚洲一区二区高清| 日韩免费福利电影在线观看| 国产成人精品影视| 亚洲欧洲国产日韩| 欧美一区二区日韩| 国产精品1024| 午夜伊人狠狠久久| 337p粉嫩大胆噜噜噜噜噜91av| 不卡电影免费在线播放一区| 亚洲3atv精品一区二区三区|