📄 systemdefaults.m
字号:
function systemDefaults% Establish default values for parameters used by SeisLab%% Written by: E. R.: January 2000% Last updated: March 5, 2008: Fix dual-monitor field%% systemDefaults% UPDATE HISTORY% February 28, 2007: Add field "log_depth".% October 25, 2007: Replace field "log_depth" by field "diff_location".% January 27, 2008: Add field "batch"global CURVES CURVE_TYPES S4M TABLES % Find the name of the calling script and save it in variable SAM.scripttry dbstk=dbstack; if length(dbstk) > 2 % Presets is called from inside another macro/script [dummy,name]=fileparts(dbstk(3).name); %#ok First output variable is not required S4M.script=name; else S4M.script=''; endcatch S4M.script=''; dbstk=1;end% Get dimensions of the monitor(s)monitorsize=get(0,'MonitorPositions'); S4M.alert=true; % Warning messages ("alerts") are printed. % If S4M.alert == false, then warnings % are not printedS4M.backgroundcolor=[0.9,0.9,0.9]; % Color of backgound in menus, etc.S4M.case_sensitive=false; % Header selection is case-insensitive (change % from 0 to 1 to make it case-sensitive)S4M.dd=8.0615; % Distribution dateS4M.deployed=isdeployed; % True if "systemDefaults" is in a compiled package % Uses interactive featuresS4M.dualmonitor=(size(monitorsize,1) > 1); % Fields set to false if SeisLab does % not run on a dual-screen system 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 S4M.figure_labels=true; % Plot plot label and date/time if available % see "S4M.plot_label" and "S4M.time"% 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=true; % Create history field for seismic structures % (set S4M.history to false 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.batch=true; % Scipts are run in batch mode. This means pop-up % windows with messages are replaced by messages % in the command window. % This setting id=s changed to false if S4M.deployedS4M.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.diff_location='base'; % Depths of a log or pseudowell may refer to either: % the center of an interval, its top, or its base. % If S4M.diff_location='center' then the first reflection % coefficient would be at depth/time % (depth(1)+depth(2))/2. % If S4M.diff_location == 'base' then a log sample, % say rho(i), is constant in an interval that begins % at depth depth(i-1) and ends at depth(i); thus % the first reflection coefficients would be at % depth/time depth(1). The first log sample has % an implied interval start. % If S4M.diff_location == 'top' then a log sample, % say rho(i), is constant in an interval that begins % at depth depth(i) and ends at depth(i+1); thus % the first reflection coefficients would be at % depth/time depth(2). The last log sample has an % implied interval end. % See also function: "reflectionStartTime"S4M.log_step_error=0.005; % Upper limit on the relative depth increment % deviation for a log to still be considered uniformly % sampled.temp=fileparts(which('presets'));idx=strfind(temp,filesep);S4M.mymatlab=temp(1:idx(end)-1); % Directory with SeisLab files S4M.helpfiles=fullfile(S4M.mymatlab,'HelpFiles'); % Directory with help filesS4M.myseislab=temp; % 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=true; % PD versionS4M.plot_label=S4M.script; % Label for the lower left corner of plots % (see also "S4M.figure_labels")S4M.precision='double'; % Use double precision for seismic and well-log datasetsS4M.pp_directory=fullfile('C:\Documents and Settings',getenv('USERNAME'), ... 'My Documents','My Pictures'); % Directory for PowerPoint files S4M.eps_directory=S4M.pp_directory; % Directory for EPS filesS4M.start_time=clock; % Date and time as 6-element array S4M.start_level=size(dbstk,1); % Set the reference 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='3.0'; % SeisLab version % and minor release digitsif S4M.deployed S4M.batch=false;end% 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 file paths in function "userDefaults"S4M.figure_path=tempdir; % Path to saved figuresS4M.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" % (starting point for interactive data selection)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 filesS4M.function_directories={'Geophysics_3.0_beta','Geophysics_3.0','m-files'}; % Used in "efind" and "hfind"; % should be customized in function "userDefaults"if S4M.matlab_version >= 7% feature('jitallow','structs','off'); % Fix bug in Matlab Version 7end% Default figure sizes/positions for portrait and landscape (based on screen size)bdwidth=5; % Border widthtopbdwidth=60; % Top border widthxl=monitorsize(1,4)*0.75; % Long side of figureyl=xl*0.66; % Shorter side of figurex0=monitorsize(1,3)*0.15;y0=monitorsize(1,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=monitorsize(1,3)*0.22;y0=monitorsize(1,4)/7-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.depth='depth'; % DepthTABLES.owt='owt'; % One-way timeTABLES.twt='twt'; % Two-way timeTABLES.vint='vint'; % Interval velocityTABLES.vp='vp'; % P-velocityTABLES.vrms='vrms'; % RMS velocityTABLES.vs='vs'; % S-velocity% Default mnemonics for log curvesCURVES.aimp='aImp'; % Acoustic (pressure) impedance (rho*Vp)CURVES.arefl='aRefl'; % Acoustic reflectivityCURVES.bd='BS'; % Bit sizeCURVES.cal='caliper'; % 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 one on the next line 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)% This is used to structure a GUICURVE_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 + -