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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wtva.m

?? 地震解釋處理matlab工具箱
?? M
字號:
function [h,hva]=wtva(s,t,kolor,snot,polarity,dir,resampfact)
% WTVA: plot a seismic trace in wiggle-trace variable-area format
%
% [h,hva]=wtva(s,t,kolor,snot,polarity,dir,resampfact)
% hs=wtva(s,t,kolor,snot,polarity,dir,resampfact)
% wtva ... with no input arguments for a demo plot
%
% WTVA draws a vector using wiggle trace variable area display. The
% vector is drawn by calling LINE and the variable area shading is
% done with a call to PATCH. This results in 2 handles for the resultant
% display, one for the line and the other for the va. WTVA draws only
% one vector at a time. Plots of multiple traces should be done with
% a loop calling WTVA separately for each trace.
% If two return arguments are specified, then the first is the handle
% of the wiggle trace and the second is the va. If only one is 
% specified then it is returned as a two element vector.
% NOTE: In order to accurately create the variable area display, additional
% 	samples must be inserted in the trace precisly at the "zero crossings".
%	This means that if you use the trace's handle to get its samples (e.g.
%	samples=get(h,'ydata') ) that you will get something different from
%	your input trace.
%
% s = the vector to be plotted
% t = the sample 'times' for s. s and t must be the same size
% kolor = the color to be used for the display. Any MATLAB color spec will
%		work here such as 'g' or 'green' or [0 1 0]. See Matlab reference manual
%		under ColorSpec for more information.
% ************ default = 'g' ************
% snot = amplitude value which determines the shading. That is, with polarity
%		of 1, all s>snot will have va shading
% ************ default = mean of the live samples of s *************
% polarity determines whether peaks or troughs are shaded 
% polarity = +1 shade peaks (s>snot)
% polarity = -1 shade troughs (s<snot)
% ************** default: polarity =1 **************
% dir=1 ... vertical plot ( line(s,t) is called )
% dir=-1 ... horizontal plot ( line(t,s) is called )
% ************** default = 1 *********************
% resampfact ... resampling factor for a smoother, but slower, plot
%   Must be a positive integer. 
% ************** default = 4 *******************
%
% G.F. Margrave, April 1994
%        revised June 1995, Oct 1995
% The CREWES Project
%
% 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


	if(nargin == 0)
	% do a demo
		%Make a fake reflectivity
		t=0:.002:2.0;
		r=randn(size(t)).^5;
		%make a ricker wavelet
		tw=-.1:.002:.1;
		arg=(pi*15*tw).^2;
		w=(1-2.*arg).*exp(-arg);
		%convolve
		s=conv(r,w);
		s=s(51:length(t)+50);
		s=s/max(s); %normalize
		%open up a figure
		figure
	end
	if(nargin<7)
		resampfact=4;
	end
	if(nargin<6)
		dir=1;
	end
	
	if(nargin<5)
		polarity=1;
	end

	if(nargin<4)
		ilive=find(~isnan(s));
		snot=mean(s(ilive));
	end
	
	if(nargin<3)
		kolor='g';
	end
	
	if(abs(polarity)~=1)
		error('invalid polarity value');
	end
	
	%find the parts to shade
	% Method:
	%		1) Find all points not to be shaded
	%		2) find the boundary points of the groups of 1). That is
	%			determine how the points fall into contiguous groups and
	%			where these groups start and end
	%		3) Find any groups of 1) which are single isolated points and
	%			add an extra point so that the minimum group size is 2
	%		4) For all groups, interpolate in the zero crossings at the 
	%			beginning and end of the group and assign the first and
	%			last points in the group to these values
	%		5) assign all other points in the group to the value 0 (or snot)
	%		6) plot the polygon using patch with no edgecolor
	%

	%test for dead trace
	test=sum(abs(s-snot));
    %test for no peaks
    itest=find(s>snot);
    
	if(test<1000*eps)
        ss=s;
		tt=t;
    else
		% resample
		if(resampfact>1)
			% my resampling
			[s,t]=resamp(s,t,(t(2)-t(1))/resampfact,[t(1) t(length(t))],0);
			% SIgnal toolbox resampling
			%s=resample(s,resampfact,1);
			%tmax=t(1)+(length(s)-1)*(t(2)-t(1))/resampfact;
			%t=t(1):(t(2)-t(1))/resampfact:tmax;
		end
		
	
		dt=t(2)-t(1);
		ss=polarity*[snot;s(:);snot];
		snot=polarity*snot;
		n=length(ss);
		tt=[t(1)-dt;t(:);t(length(t))+dt];
		% put snot on both ends. This forces the detection of isolated singular
		% points at the ends
		
		%find all points which won't be shaded
		il=find(ss<=snot);
		ilow=[0;il;n+1]; %end conditions
		%now find the beginning and ends of these zones
		ind=diff(ilow);
		ibdy=find(ind>1);
        if(~isempty(ibdy))
			% find singular groups
			ind=find(diff(ibdy)==1);
			ising=ilow(ibdy(ind)+1);
			if(~isempty(ising))
				if(ising(1)==0)
					ising(1)=[];
				end
				if(ising(length(ising))==n+1)
					ising(length(ising))=[];
				end
				if(~isempty(ising))
					for k=1:length(ising)
						%duplicate singular points
						ss=[ss(1:ising(k)); ss(ising(k)); ss(ising(k)+1:length(ss))];
						tt=[tt(1:ising(k)); tt(ising(k)); tt(ising(k)+1:length(tt))];
						ising=ising+1;
					end
				end
				% refind the points because the point count may have changed
				%find all points which won't be shaded
				il=find(ss<=snot);
				ilow=[0;il;n+1]; %end conditions
				%now find the beginning and ends of these zones
				ind=diff(ilow);
				ibdy=find(ind>1);
			end
        end
					
		if(~isempty(ibdy))
			ibdy1=ilow(ibdy);
			ibdy2=ilow(ibdy+1);
			if(ibdy1(1)==0)
				ibdy1(1)=[];
			end
			if(ibdy1(length(ibdy1))==n+1)
				ibdy1(length(ibdy1))=[];
			end
			if(ibdy2(1)==0)
				ibdy2(1)=[];
			end
			if(ibdy2(length(ibdy2))==n+1)
				ibdy2(length(ibdy2))=[];
			end
			
			%interpolate in zero crossings at the beginnings
			tnot=(snot-ss(ibdy1))./(ss(ibdy1+1)-ss(ibdy1));
			tnot=tnot.*(tt(ibdy1+1)-tt(ibdy1))+tt(ibdy1);
	
			tt(ibdy1)=tnot;
			%interpolate in zero crossings at the ends
			tnot=(snot-ss(ibdy2))./(ss(ibdy2-1)-ss(ibdy2));
			tnot=tnot.*(tt(ibdy2-1)-tt(ibdy2))+tt(ibdy2);
			tt(ibdy2)=tnot;
	
			% set all troughs to snot
			ss(il)=snot*ones(size(il));
			
			% make sure we have snot on both ends
			ss=[snot;ss(2:length(ss)-1);snot];
			tt=[t(1);tt(2:length(tt)-1);t(length(t))];
        else
            ss=snot*ones(size(s));
            tt=t;
        end
	end
	
	if(dir==1)
		hva=patch('xdata',polarity*ss,'ydata',tt,...
			'edgecolor','none','facecolor',kolor);
	else
		hva=patch('xdata',tt,'ydata',polarity*ss,...
		'edgecolor','none','facecolor',kolor);
	end

	%plot with line
	if(dir==1)
		h=line(s,t,'color',kolor);
	else
		h=line(t,s,'color',kolor);
	end

	if(nargout==1)
		h=[h hva];
		clear hva;
	end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区三区四区在线视频| 日本伊人色综合网| 日本网站在线观看一区二区三区| 国产精品影音先锋| 欧美日韩mp4| 亚洲人成在线播放网站岛国| 国产精品一区专区| 欧美日韩日本视频| 亚洲欧美视频一区| 成人在线综合网| 精品91自产拍在线观看一区| 午夜久久久久久| 91国产成人在线| 中文字幕一区二区三区在线不卡| 久久不见久久见免费视频7| 欧美日韩中字一区| 亚洲激情图片qvod| 91在线视频网址| 国产精品黄色在线观看| 国产精品综合在线视频| 国产精品欧美久久久久一区二区| 成人深夜视频在线观看| 99视频超级精品| 欧美日韩一级视频| 中文字幕一区二区三| 国产福利视频一区二区三区| 日韩欧美一区二区视频| 成人动漫在线一区| 欧美日免费三级在线| 亚洲成人综合网站| 国产日韩欧美精品综合| 欧美日韩一区中文字幕| 国产91富婆露脸刺激对白| 亚洲成人在线网站| 欧美国产综合一区二区| 9191精品国产综合久久久久久| 国产精品白丝av| 三级精品在线观看| 国产精品电影院| 日韩精品资源二区在线| 日本韩国一区二区| 成人18视频日本| 极品少妇xxxx偷拍精品少妇| 亚洲成av人片一区二区梦乃| 国产精品久久久久久亚洲毛片| 日韩一区二区免费在线观看| 91成人看片片| eeuss鲁片一区二区三区在线观看| 久久精品国产精品青草| 亚洲成人福利片| 亚洲天堂免费在线观看视频| 久久久777精品电影网影网| 欧美二区三区的天堂| 一本大道综合伊人精品热热 | 国产精品色婷婷| 欧美一级二级三级蜜桃| 欧美亚洲一区三区| 91在线你懂得| caoporen国产精品视频| 国产成人高清在线| 激情小说欧美图片| 久久国产精品99久久久久久老狼 | 综合久久综合久久| 国产欧美一区二区三区在线老狼| 91精品国产高清一区二区三区| 欧美综合一区二区| 色婷婷精品久久二区二区蜜臂av| kk眼镜猥琐国模调教系列一区二区| 国产一区二区三区久久久 | 亚洲第一狼人社区| 一区二区三区欧美视频| 亚洲精品第1页| 亚洲欧美激情视频在线观看一区二区三区 | 精品久久久网站| 欧美大片免费久久精品三p| 91精品国产综合久久小美女 | 欧美日韩高清在线| 欧美人妇做爰xxxⅹ性高电影| 精品视频在线看| 在线观看av一区二区| 在线精品视频一区二区| 91国产福利在线| 欧美天天综合网| 一区在线观看免费| 亚洲免费观看高清完整版在线| 亚洲人精品午夜| 亚洲第一成年网| 日本不卡视频在线观看| 蜜臀av性久久久久蜜臀aⅴ流畅| 久久99久久久久| 国产乱子伦视频一区二区三区| 成人三级伦理片| 色婷婷综合久久久中文字幕| 欧美三级电影一区| 欧美一卡2卡三卡4卡5免费| 精品国产免费人成在线观看| 亚洲国产精品成人综合 | 51精品久久久久久久蜜臀| 91精品国产综合久久婷婷香蕉| 精品噜噜噜噜久久久久久久久试看| 欧美精品一区二| 中文字幕一区在线| 亚洲第一在线综合网站| 韩国女主播成人在线| av电影在线观看不卡| 欧美精品三级在线观看| 2021久久国产精品不只是精品| 国产精品美女久久久久久久久久久 | 亚洲永久免费视频| 日韩国产精品大片| 成人黄色电影在线| 欧美日韩国产高清一区二区三区| 精品乱人伦一区二区三区| 亚洲视频在线一区| 秋霞电影网一区二区| 99视频精品全部免费在线| 宅男噜噜噜66一区二区66| 国产精品青草综合久久久久99| 亚洲国产欧美一区二区三区丁香婷| 六月丁香婷婷久久| 欧洲视频一区二区| 久久男人中文字幕资源站| 一区二区高清免费观看影视大全| 久久爱www久久做| 91福利精品第一导航| 国产视频一区二区在线观看| 婷婷国产v国产偷v亚洲高清| 成人黄色av电影| 精品国产免费视频| 亚洲成精国产精品女| 不卡的av在线播放| 欧美草草影院在线视频| 亚洲午夜久久久久中文字幕久| 国产91精品一区二区麻豆亚洲| 欧美一区二区三区在线电影| 中文字幕一区av| 国产精品亚洲一区二区三区妖精 | 欧美成人性战久久| 亚洲综合另类小说| 国产亚洲综合在线| 美女视频黄频大全不卡视频在线播放| 成人午夜精品一区二区三区| 欧美电视剧在线观看完整版| 亚洲成av人片在线观看| 99国产精品久久久久| 国产人久久人人人人爽| 看电影不卡的网站| 4hu四虎永久在线影院成人| 一二三四社区欧美黄| 国产成人精品免费| 久久久久久日产精品| 狠狠色丁香久久婷婷综合_中| 欧美丰满美乳xxx高潮www| 亚洲国产精品影院| 色综合中文字幕国产| 久久久久久久综合日本| 蜜桃在线一区二区三区| 91精品国产一区二区| 亚洲成年人网站在线观看| 欧美在线观看视频一区二区三区| 中文字幕在线不卡| 91在线丨porny丨国产| 亚洲欧洲国产日本综合| 成人毛片视频在线观看| 中文字幕免费一区| jizz一区二区| 亚洲乱码一区二区三区在线观看| 91丝袜国产在线播放| 亚洲欧洲精品一区二区三区| 97久久精品人人澡人人爽| 中文字幕字幕中文在线中不卡视频| 99久久精品一区二区| 亚洲精品视频一区二区| 欧美日韩亚洲综合在线| 日本一不卡视频| 2020日本不卡一区二区视频| 国产成人欧美日韩在线电影| 日本一区二区视频在线观看| 99久久er热在这里只有精品15| 国产精品美女www爽爽爽| 91久久线看在观草草青青| 亚洲在线视频一区| 日韩免费性生活视频播放| 国产精品99久| 亚洲视频一区二区在线观看| 欧美性欧美巨大黑白大战| 图片区日韩欧美亚洲| 欧美精品一区男女天堂| av影院午夜一区| 午夜精品久久久久| 久久久久久毛片| 色哟哟一区二区在线观看| 亚洲va欧美va国产va天堂影院| 日韩午夜激情电影| 成人av在线一区二区三区| 亚洲一区二区三区爽爽爽爽爽| 日韩西西人体444www| 不卡欧美aaaaa| 日韩黄色小视频| 国产精品全国免费观看高清 |