📄 systemdefaults.m
字号:
function systemDefaults% This function establishes defaults for parameters used by SeisLab%% Written by: E. R.: January 2000% Last updated: April 14, 2006: Add CURVE mnemonic "Vrms"; bug fix in CURVE fieldglobal S4M CURVES CURVE_TYPES TABLES % Find name of the calling program and save it in variable SAM.scripttemp=dbstack; if length(temp) > 2 % Presets is called from inside another macro/script [dummy,name]=fileparts(temp(3).name); S4M.script=name;else S4M.script='';endS4M.alert=logical(1); % Warning messages ("alerts") are printed. % If S4M.alert == logical(0), then warnings % are not printedS4M.backgroundcolor=[0.9,0.9,0.9]; % Color of backgound in menus, etc.S4M.case_sensitive=logical(0); % Header selection is case-insensitive (change % from 0 to 1 to make it case-sensitive)S4M.compiled=logical(0); % If S4M.compiled==1 then the script is meant to % be used in compiled formS4M.dd=6.1202; % Distribution dateS4M.dualscreen=logical(0); % Fields set to logical(0) if SeisLab does not run on % a dual-screen system (see screen-size check below) % It may need to be set manually in "presets"S4M.experience=1; % Level of experience (possible values -1, 0, 1)S4M.font_name='Arial'; % Font for plot annotationsS4M.fontsize4params=9; % Font size for parameter menusS4M.fixed_font='FixedWidth';% Fixed-pitch font % Color schemes for Graphical User Interfaces S4M.gui.backgroundcolor=[0.8,0.8,0.8]; % Color of background in menus, etc.S4M.gui.titlebackground=[0.8,0.8,0.9]; % Color of background of titles of UIC groupsS4M.gui.quitbackground=[0.8,0.8,0.9]; % Color of background of the Quit/Done/Cancel buttonsS4M.gui.buttonbackground=[0.8,0.8,0.8]; % Color of background of buttonsS4M.gui.color4tasks=[0.25,0.5,0.5]; % Color of background for tasksS4M.history=logical(1); % Create history field for seismic structures (set % S4M.history to logical(0) to disable history % field)S4M.history_level=1; % Set the deepest level below the START_LEVEL from % which to add entries into the history fieldS4M.interactive=logical(0); % Use interactive features of macros where available; % this is normal for compiled codeS4M.invert_hardcopy='off'; % Invert figure background when printing v=tokens(version,'.');S4M.matlab_version=str2double([v{1},'.',v{2}]); % Matlab version number with major % and minor release digitsS4M.log_step_error=0.005; % Upper limit on the relative depth increment % deviation for a log to still be considered uniformly % sampled.S4M.mymatlab=pwd; % Directory with Matlab files (to be personalized % in "userDefaults")S4M.name='SeisLab'; % Name for Figure windows in compiled versionS4M.no_units='n/a'; % Indicator that a quantity is dimensionlessS4M.ntr_wiggle2color=101; % Number of traces for which the default seismic % display switches from wiggle to colorS4M.pd=logical(1); % PD versionS4M.plot_label=S4M.script; % Label for the lower left corner of plotsS4M.pp_directory=fullfile('C:\Documents and Settings',getenv('USERNAME'),'My Documents','My Pictures'); % Directory for PowerPoint filesS4M.eps_directory=S4M.pp_directory; % Directory for EPS filestemp=fileparts(which('systemDefaults'));idx=strfind(temp,filesep);S4M.myseislab=temp(1:idx(end)-1); % Directory with SeisLab files S4M.start_time=clock; % Date and time as 6-element array S4M.start_level=size(dbstack,1); % Set the level relative which to count the level % of a function to determine if it can make an entry % into the history field.S4M.time=datestr(now,0); % Date and time as stringS4M.title=S4M.name; % Title in figures and dialogsS4M.seislab_version='2.01'; % SeisLab version % and minor release digits% GUI colors (deprecated)S4M.quitbackground= [0.8,0.8,0.9];S4M.titlebackground=[0.8,0.8,0.9];S4M.backgroundcolor=[0.8,0.8,0.8];% Should be overridden by user-specific files in m-file "userDefaults.m"S4M.seismic_path=tempdir; % Path to seismic data with extension "sgy" (starting point for interactive data selection)S4M.log_path=tempdir; % Path to log data with extension "log" (starting point for interactive data selection)S4M.mat_path=tempdir; % Path to mat-files with extension "mat"S4M.table_path=tempdir; % Path to table data with extension "tbl" (starting point for interactive data selection)S4M.default_path=tempdir; % Path for all other filesif S4M.matlab_version >= 7% feature('jitallow','structs','off'); % Fix bug in Matlab Version 7endif S4M.matlab_version < 6.5 S4M.interactive=logical(0); else S4M.interactive=logical(1); % Use interactive features of macros where available; % this is normal for compiled codeend% Default figure sizes/positions for portrait and landscape (based on screen size)scrnsize=get(0,'ScreenSize');if scrnsize(3) > 1600 % Dual screen? scrnsize(3)=scrnsize(3)/2; S4M.dualscreeen=logical(1);else S4M.dualscreen=logical(0);endbdwidth=5; % Border widthtopbdwidth=60; % Top border widthxl=scrnsize(4)*0.75; % Long side of figureyl=xl*0.66; % Shorter side of figurex0=scrnsize(3)*0.15;y0=scrnsize(4)-yl-5*(topbdwidth+bdwidth);LANDSCAPE=round([x0,y0,xl*1.05,yl]); % Figure position information for landscape format % The four elements in vector LANDSCAPE are: x and y coordinates of the % lower left corner and length and height of the figure (in pixels)S4M.landscape=LANDSCAPE;x0=scrnsize(3)*0.2;y0=scrnsize(4)/8-0.5*(topbdwidth+bdwidth);PORTRAIT=round([x0,y0,yl*1.0,xl*0.8]); % Figure position information for portrait format % The four elements in vector PORTRAIT are: x and y coordinates of the % lower left corner and length and height of the figure (in pixels)S4M.portrait=PORTRAIT;% Default mnemonics for tablesTABLES.owt='owt'; % One-way timeTABLES.vint='vint'; % Interval velocityTABLES.vrms='vrms'; % RMS velocityTABLES.twt='twt'; % Two-way time% Default mnemonics for log curvesCURVES.aimp='aImp'; % Acoustic (pressure) impedance (rho*Vp)CURVES.arefl='aRefl'; % Acoustic reflectivityCURVES.bd='BS'; % Bit sizeCURVES.cal='cal'; % CaliperCURVES.delta='delta'; % Thomsen parameterCURVES.depth='depth'; % Depth column (generally first column)CURVES.drho='drho'; % Density correctionCURVES.dtp='DTp'; % Sonic log (Pressure)CURVES.dts='DTs'; % Shear logCURVES.epsilon='epsilon'; % Thomsen anisotropic parameterCURVES.gr='GR'; % Gamma rayCURVES.md='MD'; % Measured depthCURVES.owt='OWT'; % One-way timeCURVES.phie='Phie'; % Effective porosityCURVES.phit='Phit'; % Total porosityCURVES.pr='PR'; % Poisson's ratioCURVES.qp='Qp'; % Q for P-wavesCURVES.qs='Qs'; % Q for S-wavesCURVES.rho='rho'; % DensityCURVES.sbrine='SBrine'; % Brine saturationCURVES.sgas='SGas'; % Gas saturationCURVES.shc='SHC'; % Hydrocarbon saturationCURVES.simp='sImp'; % Shear impedance (rho*Vs)CURVES.soil='SOil'; % Oil saturationCURVES.tvd='TVD'; % True vertical depthCURVES.tvdbml='TVDbML'; % True vertical depth below mud lineCURVES.tvdbsd='TVDbSD'; % True vertical depth below seismic datumCURVES.twt='TWT'; % Two-way timeCURVES.vclay='Vclay'; % Clay volumeCURVES.vshale='Vshale'; % Shale volumeCURVES.vint='Vint'; % Interval velocityCURVES.vrms='Vrms'; % RMS velocityCURVES.vp='Vp'; % Compressional velocityCURVES.vs='Vs'; % Shear velocity% LithologyCURVES.coal='coal'; % Logical for coalCURVES.dolomite='dolomite'; % Logical for dolomiteCURVES.gas_sand='gas_sand'; % Logical for gas sandCURVES.hc_sand='hc_sand'; % Logical for hydrocarbon sandCURVES.limestone='limestone'; % Logical for limestoneCURVES.oil_sand='oil_sand'; % Logical for oil sandCURVES.salt='salt'; % Logical for saltCURVES.sand='sand'; % Logical for sandCURVES.sh_sand='sh_sand'; % Logical for shaly sandCURVES.shale='shale'; % Logical for shaleCURVES.volcanics='volcanics'; % Logical for volcanicsCURVES.wet_sand='wet_sand'; % Logical for wet sand% Pore pressureCURVES.ep='EP'; % Excess pressureCURVES.epg='EPG'; % Excess pressure gradientCURVES.fp='FP'; % Fracture pressureCURVES.fpg='FPG'; % Fracture pressure gradientCURVES.obp='OBP'; % Overburden pressureCURVES.obpg='OBPG'; % Overburden pressure gradientCURVES.pp='PP'; % Pore pressureCURVES.ppg='PPG'; % Pore pressure gradient% Curve types% The 4 columns are:% Description% Units of measurements usually associated with it% "standard" curve mnemonic% Curve type% Indicator if a curve type is not related to the next in the list% ('P-sonic' is related to 'P-velocity' in the next row; hence the indicator is 0% 'P-velocity' is not related to 'Density' in the next row; hence the indicator is 1)CURVE_TYPES = ...[{'P-sonic', '|us/ft|us/m|', 'DTp', 'sonic', 0}; {'P-velocity', '|m/s|ft/s|', 'Vp', 'sonic velocity', 1}; {'Density', '|g/cm3|kg/m3|', 'rho', 'density', 1}; {'Impedance', '|imp|', 'Imp', 'impedance', 0}; {'Reflection coefficients', '|n/a|','Refl', 'reflection coefficients',1}; {'S-sonic', '|us/ft|us/m|', 'DTs', 'shear sonic', 0}; {'S-velocity', '|m/s|ft/s|', 'Vs' , 'shear velocity', 1}; {'Clay volume', '|fraction|%|', 'Vclay', 'clay volume', 1}; {'Water saturation','|fraction|%|', 'Sbrine','brine saturation', 1}; {'Gamma ray', '|API|gamma|', 'GR', 'gamma ray', 1}; {'Two-way time', '|s|ms|', 'TWT', 'two-way time', 0}; {'One-way time', '|s|ms|', 'OWT', 'one-way time', 1}; {'Depth', '|ft|m|' 'depth', 'depth', 0}];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -