⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s_normalize.m

📁 基于Matlab的地震数据处理显示和测井数据显示于处理的小程序
💻 M
字号:
function seismic=s_normalize(seismic,varargin)% Function normalizes seismic traces%% Written by: E. R.: December 5, 2004% Last updated: February 1, 2006: fix bug%%             seismic=s_normalize(seismic,varargin)% INPUT% seismic     seismic data set% varargin    one or more cell arrays; the first element of each cell array is a keyword,%             the other elements are parameters. Presently, keywords are:%     'attribute'   type of attribute to make equal for all the traces%             Possible values are: 'power', 'rms'%             Default: {'attribute','power'}%     'value' value to which to set attribute; possible values are the string 'average' %             (which sets the attribute to the average of all attributes) or a numeric value%             Default: {'value','average'}% OUTPUT% seismic    input data with all traces having the same attribute.%	Set default values for input parametersparam.attribute='power';param.value='average';%	Replace defaults by input parametersparam=assign_input(param,varargin);switch lower(param.attribute)		case 'power'temp=mean(seismic.traces.^2);if ischar(param.value)   scf=sqrt(mean(temp)./temp);else   try      scf=sqrt(param.value./temp);   catch      error('Check attribute value and/or data.')   endend    	case 'rms'temp=sqrt(mean(seismic.traces.^2));if ischar(param.value)   scf=mean(temp)./temp;else   try      scf=param.value./temp;   catch      error('Check attribute value and/or data.')   endend		otherwiseerror('Unknown option');endseismic.traces=mvt(seismic.traces,scf);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -