plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | isacra/isacradoctoralstuffs-master | caenumgradcheck.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/rasmusbergpalm-DeepLearnToolbox-5df2801/CAE/caenumgradcheck.m | 3,618 | utf_8 | 6c481fc15ab7df32e0f476514100141a | function cae = caenumgradcheck(cae, x, y)
epsilon = 1e-4;
er = 1e-6;
disp('performing numerical gradient checking...')
for i = 1 : numel(cae.o)
p_cae = cae; p_cae.c{i} = p_cae.c{i} + epsilon;
m_cae = cae; m_cae.c{i} = m_cae.c{i} - epsilon;
[m_cae, p_cae] = caerun(m_cae, p_cae, x... |
github | isacra/isacradoctoralstuffs-master | test_examples.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/utils/test_examples.m | 1,591 | utf_8 | 16831be7382a9343beff5cc3fe301e51 | function test_examples()
%TEST_EXAMPLES Test some of the examples in the `examples/` directory
addpath examples/mnist ;
addpath examples/cifar ;
trainOpts.gpus = [] ;
trainOpts.continue = true ;
num = 1 ;
exps = {} ;
for networkType = {'dagnn', 'simplenn'}
for index = 1:4
clear ex ;
ex.trainOpts = trainOp... |
github | isacra/isacradoctoralstuffs-master | cnn_train_dag.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/examples/cnn_train_dag.m | 13,468 | utf_8 | a9acd7cb82e9dfd3e29bb5c94bee9fe7 | function [net,stats] = cnn_train_dag(net, imdb, getBatch, varargin)
%CNN_TRAIN_DAG Demonstrates training a CNN using the DagNN wrapper
% CNN_TRAIN_DAG() is similar to CNN_TRAIN(), but works with
% the DagNN wrapper instead of the SimpleNN wrapper.
% Copyright (C) 2014-16 Andrea Vedaldi.
% All rights reserved.
%
... |
github | isacra/isacradoctoralstuffs-master | cnn_train.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/examples/cnn_train.m | 18,017 | utf_8 | a48457fdbed83db01574fdc9373e6283 | function [net, stats] = cnn_train(net, imdb, getBatch, varargin)
%CNN_TRAIN An example implementation of SGD for training CNNs
% CNN_TRAIN() is an example learner implementing stochastic
% gradient descent with momentum to train a CNN. It can be used
% with different datasets and tasks by providing a suitable... |
github | isacra/isacradoctoralstuffs-master | cnn_stn_cluttered_mnist.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/examples/spatial_transformer/cnn_stn_cluttered_mnist.m | 3,872 | utf_8 | 3235801f70028cc27d54d15ec2964808 | function [net, info] = cnn_stn_cluttered_mnist(varargin)
%CNN_STN_CLUTTERED_MNIST Demonstrates training a spatial transformer
% The spatial transformer network (STN) is trained on the
% cluttered MNIST dataset.
run(fullfile(fileparts(mfilename('fullpath')),...
'..', '..', 'matlab', 'vl_setupnn.m')) ;
opts.data... |
github | isacra/isacradoctoralstuffs-master | cnn_cifar.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/examples/cifar/cnn_cifar.m | 5,334 | utf_8 | eb9aa887d804ee635c4295a7a397206f | function [net, info] = cnn_cifar(varargin)
% CNN_CIFAR Demonstrates MatConvNet on CIFAR-10
% The demo includes two standard model: LeNet and Network in
% Network (NIN). Use the 'modelType' option to choose one.
run(fullfile(fileparts(mfilename('fullpath')), ...
'..', '..', 'matlab', 'vl_setupnn.m')) ;
opts.... |
github | isacra/isacradoctoralstuffs-master | cnn_imagenet_init.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/examples/imagenet/cnn_imagenet_init.m | 14,796 | utf_8 | 77b5cb742e5492a199b796e58430dfcc | function net = cnn_imagenet_init(varargin)
% CNN_IMAGENET_INIT Initialize a standard CNN for ImageNet
opts.scale = 1 ;
opts.initBias = 0.1 ;
opts.weightDecay = 1 ;
%opts.weightInitMethod = 'xavierimproved' ;
opts.weightInitMethod = 'gaussian' ;
opts.model = 'alexnet' ;
opts.batchNormalization = false ;
opts.networkTy... |
github | isacra/isacradoctoralstuffs-master | cnn_imagenet.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/examples/imagenet/cnn_imagenet.m | 7,094 | utf_8 | 9c6d4e185ff55b33f00f87a91ff8d397 | function [net, info] = cnn_imagenet(varargin)
%CNN_IMAGENET Demonstrates training a CNN on ImageNet
% This demo demonstrates training the AlexNet, VGG-F, VGG-S, VGG-M,
% VGG-VD-16, and VGG-VD-19 architectures on ImageNet data.
run(fullfile(fileparts(mfilename('fullpath')), ...
'..', '..', 'matlab', 'vl_setupnn.m... |
github | isacra/isacradoctoralstuffs-master | cnn_imagenet_deploy.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/examples/imagenet/cnn_imagenet_deploy.m | 6,583 | utf_8 | d997af6242f62f37353261224655d713 | function net = cnn_imagenet_deploy(net)
%CNN_IMAGENET_DEPLOY Deploy a CNN
isDag = isa(net, 'dagnn.DagNN') ;
if isDag
dagRemoveLayersOfType(net, 'dagnn.Loss') ;
dagRemoveLayersOfType(net, 'dagnn.DropOut') ;
else
net = simpleRemoveLayersOfType(net, 'softmaxloss') ;
net = simpleRemoveLayersOfType(net, 'dropout')... |
github | isacra/isacradoctoralstuffs-master | cnn_imagenet_evaluate.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/examples/imagenet/cnn_imagenet_evaluate.m | 5,194 | utf_8 | ba3f0f3f96ec666b73e979324c93a300 | function info = cnn_imagenet_evaluate(varargin)
% CNN_IMAGENET_EVALUATE Evauate MatConvNet models on ImageNet
run(fullfile(fileparts(mfilename('fullpath')), ...
'..', '..', 'matlab', 'vl_setupnn.m')) ;
opts.dataDir = fullfile('data', 'ILSVRC2012') ;
opts.expDir = fullfile('data', 'imagenet12-eval-vgg-f') ;
opts.m... |
github | isacra/isacradoctoralstuffs-master | cnn_mnist_init.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/examples/mnist/cnn_mnist_init.m | 3,111 | utf_8 | 367b1185af58e108aec40b61818ec6e7 | function net = cnn_mnist_init(varargin)
% CNN_MNIST_LENET Initialize a CNN similar for MNIST
opts.batchNormalization = true ;
opts.networkType = 'simplenn' ;
opts = vl_argparse(opts, varargin) ;
rng('default');
rng(0) ;
f=1/100 ;
net.layers = {} ;
net.layers{end+1} = struct('type', 'conv', ...
... |
github | isacra/isacradoctoralstuffs-master | cnn_mnist.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/examples/mnist/cnn_mnist.m | 4,529 | utf_8 | eb7627005308bd4d978f29b279cee26e | function [net, info] = cnn_mnist(varargin)
%CNN_MNIST Demonstrates MatConvNet on MNIST
run(fullfile(fileparts(mfilename('fullpath')),...
'..', '..', 'matlab', 'vl_setupnn.m')) ;
opts.batchNormalization = false ;
opts.networkType = 'simplenn' ;
[opts, varargin] = vl_argparse(opts, varargin) ;
sfx = opts.networkTyp... |
github | isacra/isacradoctoralstuffs-master | vl_nnloss.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/matlab/vl_nnloss.m | 10,914 | utf_8 | 3cb323deb2caf15d2f112af93d2b616c | function Y = vl_nnloss(X,c,dzdy,varargin)
%VL_NNLOSS CNN categorical or attribute loss.
% Y = VL_NNLOSS(X, C) computes the loss incurred by the prediction
% scores X given the categorical labels C.
%
% The prediction scores X are organised as a field of prediction
% vectors, represented by a H x W x D x N array... |
github | isacra/isacradoctoralstuffs-master | vl_compilenn.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/matlab/vl_compilenn.m | 28,777 | utf_8 | 9752bfab3ea0e3dc4ac81b8e8fca75e6 | function vl_compilenn(varargin)
%VL_COMPILENN Compile the MatConvNet toolbox.
% The `vl_compilenn()` function compiles the MEX files in the
% MatConvNet toolbox. See below for the requirements for compiling
% CPU and GPU code, respectively.
%
% `vl_compilenn('OPTION', ARG, ...)` accepts the following options:
%... |
github | isacra/isacradoctoralstuffs-master | getVarReceptiveFields.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/matlab/+dagnn/@DagNN/getVarReceptiveFields.m | 3,549 | utf_8 | ca843d13890184e1451248f43f7d4011 | function rfs = getVarReceptiveFields(obj, var)
%GETVARRECEPTIVEFIELDS Get the receptive field of a variable
% RFS = GETVARRECEPTIVEFIELDS(OBJ, VAR) gets the receptivie fields RFS of
% all the variables of the DagNN OBJ into variable VAR. VAR is a variable
% name or index.
%
% RFS has one entry for each variable... |
github | isacra/isacradoctoralstuffs-master | rebuild.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/matlab/+dagnn/@DagNN/rebuild.m | 3,103 | utf_8 | 2051dfdfff3e31e12ab7ac483c251515 | function rebuild(obj)
%REBUILD Rebuild the internal data structures of a DagNN object
% REBUILD(obj) rebuilds the internal data structures
% of the DagNN obj. It is an helper function used internally
% to update the network when layers are added or removed.
varFanIn = zeros(1, numel(obj.vars)) ;
varFanOut = zero... |
github | isacra/isacradoctoralstuffs-master | print.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/matlab/+dagnn/@DagNN/print.m | 13,352 | utf_8 | 074f69a09b01cfea5703e435b2bfc22d | function str = print(obj, inputSizes, varargin)
%PRINT Print information about the DagNN object
% PRINT(OBJ) displays a summary of the functions and parameters in the network.
% STR = PRINT(OBJ) returns the summary as a string instead of printing it.
%
% PRINT(OBJ, INPUTSIZES) where INPUTSIZES is a cell array of ... |
github | isacra/isacradoctoralstuffs-master | fromSimpleNN.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/matlab/+dagnn/@DagNN/fromSimpleNN.m | 7,120 | utf_8 | 38d26e77f162ec60724dc4cb765e3a99 | function obj = fromSimpleNN(net, varargin)
% FROMSIMPLENN Initialize a DagNN object from a SimpleNN network
% FROMSIMPLENN(NET) initializes the DagNN object from the
% specified CNN using the SimpleNN format.
%
% SimpleNN objects are linear chains of computational layers. These
% layers exchange information th... |
github | isacra/isacradoctoralstuffs-master | vl_simplenn_display.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/matlab/simplenn/vl_simplenn_display.m | 12,389 | utf_8 | bd99c027519a637b853c5a096f1a79b1 | function [info, str] = vl_simplenn_display(net, varargin)
%VL_SIMPLENN_DISPLAY Display the structure of a SimpleNN network.
% VL_SIMPLENN_DISPLAY(NET) prints statistics about the network NET.
%
% INFO = VL_SIMPLENN_DISPLAY(NET) returns instead a structure INFO
% with several statistics for each layer of the netw... |
github | isacra/isacradoctoralstuffs-master | vl_test_economic_relu.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/matconvnet-1.0-beta20/matlab/xtest/vl_test_economic_relu.m | 790 | utf_8 | 35a3dbe98b9a2f080ee5f911630ab6f3 | % VL_TEST_ECONOMIC_RELU
function vl_test_economic_relu()
x = randn(11,12,8,'single');
w = randn(5,6,8,9,'single');
b = randn(1,9,'single') ;
net.layers{1} = struct('type', 'conv', ...
'filters', w, ...
'biases', b, ...
'stride', 1, ...
... |
github | isacra/isacradoctoralstuffs-master | classification_demo.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/caffe-master/matlab/demo/classification_demo.m | 5,412 | utf_8 | 8f46deabe6cde287c4759f3bc8b7f819 | function [scores, maxlabel] = classification_demo(im, use_gpu)
% [scores, maxlabel] = classification_demo(im, use_gpu)
%
% Image classification demo using BVLC CaffeNet.
%
% IMPORTANT: before you run this demo, you should download BVLC CaffeNet
% from Model Zoo (http://caffe.berkeleyvision.org/model_zoo.html)
%
% *****... |
github | isacra/isacradoctoralstuffs-master | WolfeLineSearch.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/stanford_dl_ex-master/common/minFunc_2012/minFunc/WolfeLineSearch.m | 10,590 | utf_8 | f962bc5ae0a1e9f80202a9aaab106dab | function [t,f_new,g_new,funEvals,H] = WolfeLineSearch(...
x,t,d,f,g,gtd,c1,c2,LS_interp,LS_multi,maxLS,progTol,debug,doPlot,saveHessianComp,funObj,varargin)
%
% Bracketing Line Search to Satisfy Wolfe Conditions
%
% Inputs:
% x: starting location
% t: initial step size
% d: descent direction
% f: function v... |
github | isacra/isacradoctoralstuffs-master | minFunc_processInputOptions.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/stanford_dl_ex-master/common/minFunc_2012/minFunc/minFunc_processInputOptions.m | 3,936 | utf_8 | 167c0b9848cba950f05d4efec5667d66 |
function [verbose,verboseI,debug,doPlot,maxFunEvals,maxIter,optTol,progTol,method,...
corrections,c1,c2,LS_init,cgSolve,qnUpdate,cgUpdate,initialHessType,...
HessianModify,Fref,useComplex,numDiff,LS_saveHessianComp,...
Damped,HvFunc,bbType,cycle,...
HessianIter,outputFcn,useMex,useNegCurv,precFunc,...
... |
github | isacra/isacradoctoralstuffs-master | removeDC.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/stanford_dl_ex-master/rica/removeDC.m | 420 | utf_8 | 98f8564a2e7aaf2a188d142a08be2c14 | % Removes DC component from image patches
% Data given as a matrix where each patch is one column vectors
% That is, the patches are vectorized.
function [Y,meanX]=removeDC(X, dim);
% Subtract local mean gray-scale value from each patch in X to give output Y
if nargin == 1
dim = 1;
end
meanX = mean(X,dim);
if d... |
github | isacra/isacradoctoralstuffs-master | softICACost.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/stanford_dl_ex-master/rica/softICACost.m | 388 | utf_8 | d9004e62d6d16c20a74f4b05339c197c | %% Your job is to implement the RICA cost and gradient
function [cost,grad] = softICACost(theta, x, params)
% unpack weight matrix
W = reshape(theta, params.numFeatures, params.n);
% project weights to norm ball (prevents degenerate bases)
Wold = W;
W = l2rowscaled(W, 1);
%%% YOUR CODE HERE %%%
% unproject gradient... |
github | isacra/isacradoctoralstuffs-master | bsxfunwrap.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/Deep-Learning/stanford_dl_ex-master/rica/bsxfunwrap.m | 1,030 | utf_8 | 9db0f61375c03b342b2005b39d596726 |
function c = bsxfunwrap(func, a, b)
global usegpu;
if usegpu
if size(a,1) > 1 && size(b,1) == 1
assert(size(a,2) == size(b,2), 'bsxfunwrap singleton dimensions dont agree');
c = func(a, repmat(b, size(a,1), 1));
elseif size(a,2) > 1 && size(b,2) == 1
assert(size(a,1) == size(b,1), 'bs... |
github | isacra/isacradoctoralstuffs-master | metrop.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/netlab/metrop.m | 4,976 | utf_8 | 53e05637fbfd2fcd95efaadd86e97ce9 | function [samples, energies, diagn] = metrop(f, x, options, gradf, varargin)
%METROP Markov Chain Monte Carlo sampling with Metropolis algorithm.
%
% Description
% SAMPLES = METROP(F, X, OPTIONS) uses the Metropolis algorithm to
% sample from the distribution P ~ EXP(-F), where F is the first
% argument to METROP. T... |
github | isacra/isacradoctoralstuffs-master | hmc.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/netlab/hmc.m | 7,683 | utf_8 | 64c15e958297afe69787b8617dc1a56a | function [samples, energies, diagn] = hmc(f, x, options, gradf, varargin)
%HMC Hybrid Monte Carlo sampling.
%
% Description
% SAMPLES = HMC(F, X, OPTIONS, GRADF) uses a hybrid Monte Carlo
% algorithm to sample from the distribution P ~ EXP(-F), where F is the
% first argument to HMC. The Markov chain starts at the poi... |
github | isacra/isacradoctoralstuffs-master | gtminit.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/netlab/gtminit.m | 5,204 | utf_8 | ab76f6114a7e85375ade5e5889d5f6a7 | function net = gtminit(net, options, data, samp_type, varargin)
%GTMINIT Initialise the weights and latent sample in a GTM.
%
% Description
% NET = GTMINIT(NET, OPTIONS, DATA, SAMPTYPE) takes a GTM NET and
% generates a sample of latent data points and sets the centres (and
% widths if appropriate) of NET.RBFNET.
%
% I... |
github | isacra/isacradoctoralstuffs-master | mlphess.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/netlab/mlphess.m | 1,633 | utf_8 | b91a15ca11b4886de6c1671c33a735d3 | function [h, hdata] = mlphess(net, x, t, hdata)
%MLPHESS Evaluate the Hessian matrix for a multi-layer perceptron network.
%
% Description
% H = MLPHESS(NET, X, T) takes an MLP network data structure NET, a
% matrix X of input values, and a matrix T of target values and returns
% the full Hessian matrix H corresponding... |
github | isacra/isacradoctoralstuffs-master | glmhess.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/netlab/glmhess.m | 4,024 | utf_8 | 2d706b82d25cb35ff9467fe8837ef26f | function [h, hdata] = glmhess(net, x, t, hdata)
%GLMHESS Evaluate the Hessian matrix for a generalised linear model.
%
% Description
% H = GLMHESS(NET, X, T) takes a GLM network data structure NET, a
% matrix X of input values, and a matrix T of target values and returns
% the full Hessian matrix H corresponding to t... |
github | isacra/isacradoctoralstuffs-master | rbfhess.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/netlab/rbfhess.m | 3,138 | utf_8 | 0a6ef29c8be32e9991cacfe42bdfa0b3 | function [h, hdata] = rbfhess(net, x, t, hdata)
%RBFHESS Evaluate the Hessian matrix for RBF network.
%
% Description
% H = RBFHESS(NET, X, T) takes an RBF network data structure NET, a
% matrix X of input values, and a matrix T of target values and returns
% the full Hessian matrix H corresponding to the second deriva... |
github | isacra/isacradoctoralstuffs-master | l_resample.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/l_resample.m | 5,775 | utf_8 | da3dc258340e425dce17483935fe29d5 | function logout=l_resample(wlog,step,varargin)
% Function resamples all curves of a log. Gaps in log curves (NaNs) are
% interpolated prior to resampling (l_fill_gaps). Gaps are filled even
% if "step" is equal to wlog.step.
% Leading and/or trailing null values are ignored.
%
% Written by: E. Rietsch:
% Last updated... |
github | isacra/isacradoctoralstuffs-master | write_las_file.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/write_las_file.m | 12,646 | utf_8 | d6740bc80ea29cd417d21f55c444ba91 | function write_las_file(wlog,filename,iprint)
% Function creates a disk file in LAS (Log ASCII Standard)format,
% Version 2.0, as specified by the Canadian Well Logging Society
%
% Written by: E. Rietsch: February 20, 2000
% Last updated: October 10, 2007: Use function "open_file" to handle file initiation
%
% w... |
github | isacra/isacradoctoralstuffs-master | s_history.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_history.m | 4,674 | utf_8 | 505210de012d4898b0687b47b8394b4b | function seismic=s_history(seismic,action,parameters)
% Function operates on the history field of a seismic structure; displays data set history
% if no output argument is given
%
% Written by: E. Rietsch: March, 2001
% Last updated: November 29, 2006: handle structure vectors
%
% seismic=s_history(seismic... |
github | isacra/isacradoctoralstuffs-master | s_principal_components.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_principal_components.m | 9,184 | utf_8 | 45ea0d6d1a65fda0f2d42cb5b619108e | function [pc,aux]=s_principal_components(seismic,varargin)
% Perform principal-component analysis of the input dataset.
% The output can be:
% A. The input data represented by any combination of the principal
% components --- usually the first few: {'output','seismic'}
% B. One or more of the principal components ... |
github | isacra/isacradoctoralstuffs-master | showcell.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/showcell.m | 15,351 | utf_8 | e4640686dcd07cce66eb598883513dee | function showcell(varargin)
%SHOWCELL Displays cell array with long strings in the command window.
% SHOWCELL(A) displays the contents of a cell array A in the command
% window. It will format the display so that long strings will display
% appropriately. A can be a cell array of numbers, strings, and/or othe... |
github | isacra/isacradoctoralstuffs-master | s_align.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_align.m | 14,853 | utf_8 | 60bcd8ccf2428d666af347c69c483aeb | function seismic=s_align(seismic,varargin)
% Function aligns (flattens) a user-specified event on seismic traces.
% The shifts required for alignment as well as the correlation coefficient can
% be stored in headers.
%
% Written by: E. Rietsch: February 19, 2001
% Last updated: February 13, 2008: Use "isnull" to check... |
github | isacra/isacradoctoralstuffs-master | show.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/show.m | 1,088 | utf_8 | 0e8ff5690fe8e9f20b646f0cd30ebd1f | function show(var)
% Function displays numeric variables, structures, and cell arrays in a
% more general form than provided by Matlab and uses "disp" for all other
% variables
%
% Written by: E. Rietsch: January 22, 2006
% Last updated: March 6, 2006: cosmetics
%
% show(var)
% INPUT
% var variable to display ... |
github | isacra/isacradoctoralstuffs-master | s_fft.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_fft.m | 5,226 | utf_8 | 5f1dea75a6d1eedc2f1c8c61d18c4af1 | function ftseismic=s_fft(seismic,varargin)
% Compute the amplitude spectrum or the Fourier transform
% of the traces of the seismic input data set(s).
% The phase is corrected so that the Fourier transform honors time zero; this
% means that a seismic trace symmetric about time zero will have a real
% Fourier transform... |
github | isacra/isacradoctoralstuffs-master | s_gain.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_gain.m | 5,350 | utf_8 | f222c041256013eb3a17b6eda3f10b71 | function [gseismic,tgain]=s_gain(seismic,varargin)
% Function computes and applies a gain function to the input data set and
% outputs the gained data set as well as the gain function (if two output
% data sets are specified)
%
% Written by: E. Rietsch: July 14, 2000
% Last updated: October 2, 2001: Handle NaNs in dat... |
github | isacra/isacradoctoralstuffs-master | read_segy_file_legacy.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/read_segy_file_legacy.m | 29,371 | utf_8 | 729705da2c0c1ef1a6307004d5070f98 | function [seismic,ebcdic_header,binary_header]=read_segy_file_legacy(filename,varargin)
% Function reads a SEG-Y file and outputs a seismic structure
%
% Written by: E. Rietsch: March 5, 2000
% Last updated: April 6, 2007: fix bug in reading of user-specified headers
%
% [seismic,ebcdic_header,binary_header... |
github | isacra/isacradoctoralstuffs-master | s_trace_numbers.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_trace_numbers.m | 5,359 | utf_8 | c33260b8dcdf5c6d0a821145c65e76f8 | function [index,ierr]=s_trace_numbers(seismic,string,varargin)
% Function outputs trace numbers of seismic input traces based on
% selected header values.
% See also: "s_select"
%
% Written by: E. Rietsch: April 15, 2000
% Last updated: July 23, Revamped code
%
% [index,ierr]=s_trace_numbers(seismic,string,va... |
github | isacra/isacradoctoralstuffs-master | l_regression.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/l_regression.m | 11,715 | utf_8 | f87084a49b48291ff434624c4f75c782 | function [wlog,aux]=l_regression(wlog,expression,varargin)
% Function creates new log curve using the mathematical expression contained in the
% third input argument. Null values (NaNs) in the log curves are ignored when computing
% the regression parameters. Requires the Optimization Toolbox
%
% Written by E. Rietsch,... |
github | isacra/isacradoctoralstuffs-master | s_wplot.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_wplot.m | 25,635 | utf_8 | b3fbf08aebc816369743a60a91d33bb4 | function aux=s_wplot(seismic,varargin)
% Plot seismic data in wiggle-trace, variable-area form or as spikes at the
% sample times (the latter option is meant for the display of reflection coefficients)
%
% See also: s_cplot, s_plot, s_compare
%
% Written by: E. Rietsch: April 15, 2000
% Last updated: July 15, 2009: Rep... |
github | isacra/isacradoctoralstuffs-master | s_iplot.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_iplot.m | 20,350 | utf_8 | db452301f490276da1ebdf4d049ffe54 | function aux=s_iplot(seismic,varargin)
% Function plots seismic data in wiggle-trace form.
% By default, positive deflections are filled black.
%
% Written by: E. Rietsch: April 15, 2000
% Last updated: March 16, 2007: set default for "scale" to 'no'; white background
%
% aux=s_iplot(seismic,varargin)
% IN... |
github | isacra/isacradoctoralstuffs-master | s_spectrum.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_spectrum.m | 18,594 | utf_8 | 85debd8ad7c3e2bc8d4de6d280a0dafc | function aux=s_spectrum(varargin)
% Display the spectrum of one or more seismic input data sets.
% Null values in any data set are replaced by zeros. A maximum of 100 curves
% can be displayed.
%
% Written by: E. Rietsch: July 3, 2000 (original version)
% Last updated: April 15, 2008: Add option to apply a taper wind... |
github | isacra/isacradoctoralstuffs-master | s_stack_with_deviation.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_stack_with_deviation.m | 4,480 | utf_8 | a2b8c62be61146570e11ef682cc73c71 | function [stack,deviation,aux]=s_stack_with_deviation(seismic,varargin)
% Compute stack and the deviation of each input trace from the stack.
% Thus "deviation" has as many traces as "seismic"; each trace is the
% difference between the corresponding trace of seismic and the stacked
% trace associated with it.
% A s... |
github | isacra/isacradoctoralstuffs-master | l_select.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/l_select.m | 5,255 | utf_8 | b3057b69e9d230312fddf623d8ea6665 | function wlog=l_select(wlog,varargin)
% Function retrieves subset of well log from a log structure.
% If wlog is a structure vector the same subset is selected from each well log.
% An error message is printed if a column mnemonic requested is not found.
% Column mnemonics are not case sensitive.
%
% Written by: E. R... |
github | isacra/isacradoctoralstuffs-master | ds_unit_conversion.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/ds_unit_conversion.m | 13,271 | utf_8 | 89360b07c8bfcd0d3b00d454f1b8ac59 | function dataset=ds_unit_conversion(dataset,varargin)
% Function converts units of measurements of columns/curves/headers/panels and
% parameters in a dataset structure.
% Datasets supported are: seismic data, well logs, tables,and pseudo-wells.
% Units of measurement for the time/depth axis are also modified for we... |
github | isacra/isacradoctoralstuffs-master | s_select.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_select.m | 10,370 | utf_8 | 2b25c7e8494ba55b45d88bd6bdf29833 | function seisout=s_select(seismic,varargin)
% Function extracts subset of seismic input traces. An option also allows changing the time
% range of the output data. If seisout.first < seismic.first and/or seisout.last > seismic.last
% then the trace samples undefined by the input data are set to the null value.
% See al... |
github | isacra/isacradoctoralstuffs-master | l_fill_gaps.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/l_fill_gaps.m | 2,518 | utf_8 | fdb2c3c42e285b3ba382f597bbf04495 | function wlog=l_fill_gaps(wlog,mnemonics)
% Function interpolates across gaps in the log curves (null values) of all
% curves specified by an optional list of mnemonics. The function assumes
% that null values are represented by NaNs.
%
% Date April 29, 2000; written by E. Rietsch
% Last update: June 8, 2004: use "w... |
github | isacra/isacradoctoralstuffs-master | l_rm_nulls.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/l_rm_nulls.m | 3,849 | utf_8 | e0e05817bcc9822f431af8872b5b7a58 | function wlog=l_rm_nulls(wlog,action,mnemonics)
% Function removes leading and trailing rows from log curves if they contain
% null values; with option "anywhere", every row with a NaN in one of the
% listed curves is removed.
% Null values bracketed by non-null values may be retained. The function assumes
% that nul... |
github | isacra/isacradoctoralstuffs-master | s_header_plot.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_header_plot.m | 7,177 | utf_8 | 19eaab2240f0108d28d01b9cbd45362d | function aux=s_header_plot(seismic,headers,varargin)
% Function plots values of seismic headers
%
% Written by: E. Rietsch: July 22, 2000
% Last updated: January 30, 2007: add cursor tracking
%
% aux=s_header_plot(seismic,headers,varargin)
% INPUT
% seismic seismic structure whose headers should be plotted
... |
github | isacra/isacradoctoralstuffs-master | s_create_wavelet.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_create_wavelet.m | 11,528 | utf_8 | b107a72e1ba7e62f5c7bb999abb45eba | function wav=s_create_wavelet(varargin)
% Function computes wavelet and stores it in a seismic data structure; The
% wavelet is scaled in such a way that its maximum amplitude (maximum of the
% instantaneous amplitude in case of a non-zero-phase wavelet) is equal to 1.
%
% See also: s_create_spike
%
% Written by: E. Ri... |
github | isacra/isacradoctoralstuffs-master | s_seismic2wavelet.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_seismic2wavelet.m | 8,709 | utf_8 | ddc4f9f4a651e2e8c10f2d884d947769 | function wavelet=s_seismic2wavelet(seismic,varargin)
% Function computes wavelet with about the spectrum expected on the basis of the
% seismic data. The wavelet can be minimum-phase, zero-phase, or
% maximum-phase. The amplitude is based on the windowed autocorrelation of the
% seismic data.
%
% Written by: E. Rietsch... |
github | isacra/isacradoctoralstuffs-master | s_cplot.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_cplot.m | 19,603 | utf_8 | e95b0b24a71e60e9219c74f10bc647c5 | function aux=s_cplot(seismic,varargin)
% Plot seismic data in color-coded form.
%
% Written by: E. Rietsch: May 16, 2000
% Last updated: October 24, 2009: Remove the lines between facets
% (parameter "shading")
%
% aux=s_cplot(seismic,varargin)
% INPUT
% seismic seismic structure
% v... |
github | isacra/isacradoctoralstuffs-master | read_las_file.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/read_las_file.m | 5,604 | utf_8 | 67e4827a715b5dca7711a5a4c860b9ab | function wlog=read_las_file(filename,varargin)
% Function reads well logs from a disk file in LAS format (Log ASCII Standard)
% Versions 2.0 or 3.0 as specified by the Canadian Well Logging Society.
% See also: "read_las2_file"
%
% Written by: E. Rietsch: December 15, 2006;
% Last updated: October 12, 2007: remove f... |
github | isacra/isacradoctoralstuffs-master | s_create_qfilter.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_create_qfilter.m | 3,649 | utf_8 | 653c5f5d0ffbf454f9275950598ab48f | function qf=s_create_qfilter(varargin)
% Function computes a series of constant-Q absorption filters. These filters have
% an amplitude spectrum equal to exp(-pi*f*t/Q) where f is frequency, t is travel
% time, and Q denotes the quality factor (usually in the range of 30 to 200).
% The total number of traces output e... |
github | isacra/isacradoctoralstuffs-master | s_spectrum2wavelet.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_spectrum2wavelet.m | 3,686 | utf_8 | fefc784e467d1c3d52b51e2d1b682b19 | function wavelet=s_spectrum2wavelet(freq,amps,varargin)
% Compute zero-phase wavelet from its amplitude spectrum;
% unless spectral amplitudes are defined for zero frequency and/or Nyquist
% frequency (i.e. freq(1) == 0 and/or freq(end) == 500/step) they are set
% to zero.
%
% Written by: E. Rietsch: November 27, 2004... |
github | isacra/isacradoctoralstuffs-master | read_las2_file.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/read_las2_file.m | 18,770 | utf_8 | 2c29248cebe60ad5c5580af2cefa4a69 | function [wlog,las_header]=read_las2_file(filename,iprint)
% Function reads well logs from a disk file in LAS format (Log ASCII Standard),
% Version 2.0, as specified by the Canadian Well Logging Society.
% Generally somewhat faster than "read_las_file" but may be deprecated in
% the future.
% See also: read_las_file
... |
github | isacra/isacradoctoralstuffs-master | show_segy_header.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/show_segy_header.m | 2,859 | utf_8 | 4bd3527ee2effbdee496ea4c6265bc38 | function header=show_segy_header(filename)
% Function displays the EBCDIC header of a SEG-Y file
% Date Feb. 20, 2000; written by E. Rietsch
% INPUT
% filename name of the file
% if the name is omitted or does not refer to an existing file
% a file selector box will pop up to allow interac... |
github | isacra/isacradoctoralstuffs-master | s_shift.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_shift.m | 6,837 | utf_8 | 4614f27f8884374473742651300926f2 | function seismic=s_shift(seismic,varargin)
% Function applies user-specified time shifts to seismic traces
%
% Written by: E. Rietsch: July 2001
% Last updated: March 23, 2008: bug fix for constant shift; output
% precision is input precision
%
% seismic=s_shift(seismic,vararg... |
github | isacra/isacradoctoralstuffs-master | s_wavextra.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_wavextra.m | 13,805 | utf_8 | 69e64aa24cda0071b2063aa33670384c | function [wavelet,aux]=s_wavextra(seismic,refl,varargin)
% Function extracts wavelet from seismic data using a log-derived
% reflectivity sequence.
%
% Written by E. Rietsch, May 6, 2000
% Last update: January 16, 2007: Discontinued use of "spdiags"
%
% [wavelet,aux]=s_wavextra(seismic,refl,varargin)
% INPUT... |
github | isacra/isacradoctoralstuffs-master | write_segy_file.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/write_segy_file.m | 20,874 | utf_8 | 69b0175b19bd94329d6a7426a85b3501 | function write_segy_file(seismic,filename,varargin)
% Function writes seismic data to disk in SEG-Y file format.
% If the start time is greater than zero, zeros are prepended. If it is less
% than zero, a warning message is printed.
% The only floating-point format supported is IEEE big-endian, which is one of
% th... |
github | isacra/isacradoctoralstuffs-master | s_resample.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_resample.m | 7,673 | utf_8 | 48867adae303fed7f8360b744e370d69 | function seismic=s_resample(seismic,sample_interval,varargin)
% Function resamples seismic data to new sample interval. If the new sample
% interval is greater than the old sample interval and interpolation is done
% in the time domain an Ormsby filter with corner frequencies
% 0, 0, 0.8*fnyquist, fnyquist
% is... |
github | isacra/isacradoctoralstuffs-master | s_append.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_append.m | 10,541 | utf_8 | e94f42634b346c9d4d692ffd41fcd27f | function seisout=s_append(seis1,seis2,varargin)
% Function combines two seismic data sets. On output the traces of the
% first input data set are followed by the traces of the second data set.
% The two data sets must satisfy the following two conditions:
% seis1.step=seis2.step;
% (seis1.first-sei... |
github | isacra/isacradoctoralstuffs-master | l_unit_conversion.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/l_unit_conversion.m | 9,388 | utf_8 | 06ff65819756cdfd19ceda825126499a | function wlog=l_unit_conversion(wlog,varargin)
% Function converts units of measurements of curves and parameters in
% a log structure.
%
% DEPRECATED: Use "ds_unit_conversion" instead.
%
% Written by: E. Rietsch: January 10, 2001
% Last updated: April 11, 2007: Bug fix
%
% wlog=l_unit_conversion(wlog,varargin... |
github | isacra/isacradoctoralstuffs-master | s_stack.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/s_stack.m | 7,570 | utf_8 | 11e9433cb1c39f519396e2a281b8058b | function [stack,aux]=s_stack(seismic,varargin)
% Function stacks seismic traces (sums the traces of gathers and divides
% the sum by the number of valid samples added; normalization).
% It a header mnemonic is specified, traces with the same value of
% that header (gathers) are stacked; otherwise all traces of the i... |
github | isacra/isacradoctoralstuffs-master | helpx.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/helpx.m | 2,090 | utf_8 | d6d69c65ef002c282efcbdc9247d228e | function warnings=helpx(func)
% Run the example in the help section of a function
% The help section starts with the line "% EXAMPLE"
string=blanks(80);
string=strrep(string,' ','=');
helptext = help(func);
if isempty(helptext)
warnings=['Function "',func,'" has no help section'];
return
end
%linesep = [1 reg... |
github | isacra/isacradoctoralstuffs-master | create_button4tracking.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/create_button4tracking.m | 2,663 | utf_8 | b1fb9fcd2cfb29e6989d2062bac86f13 | function button_handle=create_button4tracking(type_of_action)
% Create a menu item to track cursor movements
%
% Written by: E. Rietsch: August 31, 2003
% Last updated: January 8, 2004
%
% button_handle=create_button4tracking(type_of_action)
% INPUT
% type_of_action cell array or string with the call-ba... |
github | isacra/isacradoctoralstuffs-master | showcell.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/showcell.m | 15,354 | utf_8 | 3fb3aa1da4c8f7a46056ff43e7872f60 | function showcell(varargin)
%SHOWCELL Displays cell array with long strings in the command window.
% SHOWCELL(A) displays the contents of a cell array A in the command
% window. It will format the display so that long strings will display
% appropriately. A can be a cell array of numbers, strings, and/or othe... |
github | isacra/isacradoctoralstuffs-master | interpret_las2.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/interpret_las2.m | 6,508 | utf_8 | 2aa8ffc9f42baf84c31d02b00ed3d650 | function [wlog,aux]=interpret_las2(tlines,wrap)
% Interpret the lines of a file in LAS 3.0 format and create a well-log
% structure.
%
% Written by: E. Rietsch: December 19, 2006
% Last updated: February 7, 2007: Handle parameters without a preceding ~PARAMETER line
%
% [wlog,aux]=interpret_las2(tlines)
... |
github | isacra/isacradoctoralstuffs-master | wseismic_scrollbar_menu.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/wseismic_scrollbar_menu.m | 5,153 | utf_8 | efb498e845f3406baca9e904d41f0181 | function menu_handle=wseismic_scrollbar_menu(figure_handle,seismic,plotdir)
% Function creates a menu button on the figure with handle "figure_handle" (or
% the current figure) that allows one to add scroll bars to a wiggle seismic plot
%
% Written by: E. Rietsch, August 22, 2005
% Last updated: November 5, 2005: Save ... |
github | isacra/isacradoctoralstuffs-master | create_menu_item4tracking.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/create_menu_item4tracking.m | 2,356 | utf_8 | 6841240dc3e5f090a4c7c468188721f7 | function button_handle=create_menu_item4tracking(type_of_action,button_handle)
% Create a menu item to track cursor movements
%
% Written by: E. Rietsch: August 31, 2003
% Last updated: January 8, 2004
%
% button_handle=create_button4tracking(type_of_action)
% INPUT
% type_of_action cell array or string... |
github | isacra/isacradoctoralstuffs-master | cseismic_scrollbar_menu_item.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/cseismic_scrollbar_menu_item.m | 5,115 | utf_8 | 37458559768477864c62f7229ca84cad | function menu_handle=cseismic_scrollbar_menu_item(figure_handle,options_menu_handle,seismic,plotdir)
% Function creates a menu button on the figure with handle "figure_handle"
% that allows one to add scroll bars to a color seismic plot
%
% Written by: E. Rietsch, August 22, 2005
% Last updated: November 5, 2005: Save... |
github | isacra/isacradoctoralstuffs-master | axis_label_location.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/axis_label_location.m | 4,763 | utf_8 | 24743f50637685bc65c1788ba765f8ba | function axis_label_location(handles,xll,yll)
% In a multi-plot figure created by "mysubplot" this function allows selection
% of the axes which should be annotated.
%
% Written by: E. Rietsch: March 19, 2009
% Last updated:
%
%
% INPUT
% handles matrix of handle values as output by function "mysubplot".
% if "... |
github | isacra/isacradoctoralstuffs-master | menu2pick_frequency_windows.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/menu2pick_frequency_windows.m | 10,172 | utf_8 | 8d3c03e75c86b2f261410434e502baf5 | function MenuHandle=menu2pick_frequency_windows(figure_handle)
% Create menu button to pick rectangular windows; the spectrum of the data
% is posted to a second window. The callback function that does
% all this is also in this file ("g_ispectrum") and passed on to the
% "outside world" via a "function handle".
%
% W... |
github | isacra/isacradoctoralstuffs-master | progressbar.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/progressbar.m | 8,060 | utf_8 | 6c62b1a5269815b4e192c4f49b89758e | function handle = progressbar( handle,increment,string,titlestr)
%
% progressbar - shows a progress bar dialog based on the function "waitbar"
%
% Format: handle = progressbar( handle,increment [,string,titlestr] )
%
% Input: handle - handle to current progress bar, [] for a new one
% increment - a ... |
github | isacra/isacradoctoralstuffs-master | myimagemenu.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/myimagemenu.m | 7,016 | utf_8 | 2b0c5a6fa420b9dac2b5cb298b76ef93 | function myimagemenu(figure_handle)
%IMAGEMENU adds a context menu to change image properties
% IMAGEMENU(handle) creates a context menu for all images with the parent
% handle that allows image properties to be easily changed.
% IMAGEMENU, without any input arguments, will create this context menu
% for all im... |
github | isacra/isacradoctoralstuffs-master | gui_patience.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/gui_patience.m | 4,230 | utf_8 | 98e2588976a4a5a369ddcb0da880b013 | function varargout = gui_patience(varargin)
% Create a message window; the message does not halt execution of the program
% Written by: E. Rietsch: October 2003
% Last updated: July 22, 2007: "mlint" compliant
%
% varargout = gui_patience(varargin)
% INPUT
% varargin(1) cell containing string with message ... |
github | isacra/isacradoctoralstuffs-master | interpret_las3.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/interpret_las3.m | 18,398 | utf_8 | e570a9e6869451bd47ad64027cdbb694 | function [wlog,aux]=interpret_las3(tlines,param)
% Interpret the lines of a file in LAS 3.0 format and create a well-log
% structure. Called by "read_las_file".
%
% Written by: E. Rietsch: December 16, 2006
% Last updated: January 31, 2007: Write parameters only if they are not empty
%
% [wlog,aux]=interpret_l... |
github | isacra/isacradoctoralstuffs-master | cseismic_scrollbar_menu.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/cseismic_scrollbar_menu.m | 5,079 | utf_8 | b80249f4639f58be73e45931e5c3f316 | function menu_handle=cseismic_scrollbar_menu(figure_handle,seismic,plotdir)
% Function creates a menu button on the figure with handle "figure_handle"
% that allows one to add scroll bars to a color seismic plot
%
% Written by: E. R., August 22, 2005
% Last updated: November 5, 2005: Save axis limits before user querr... |
github | isacra/isacradoctoralstuffs-master | histoplot1.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/histoplot1.m | 6,807 | utf_8 | 6c85abe55d324569fd73f48021023845 | function aux=histoplot1(x,edges,varargin)
% Histogram plot (1-D)
%
% Written by: E. Rietsch: September 19, 2003
% Last updated: April 10, 2008: Generalize plotting of percentile lines
%
% aux=histoplot1(x,edges,varargin)
% INPUT
% x column vector of samples
% edges either the vector of edges for "x"
% ... |
github | isacra/isacradoctoralstuffs-master | read_traces_of_segy_file.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/read_traces_of_segy_file.m | 7,081 | utf_8 | 0cab8e31e213b2d0da602f67398a7f62 | function [seismic,headers]=read_traces_of_segy_file(fid,seismic,param,parameters,max_no_of_traces)
% Read traces of the open SEG-Y file with file ID "fid". The file must have
% been opened with function "open_segy_file4reading". This function also
% provides the input arguments for this function.
% For internal use i... |
github | isacra/isacradoctoralstuffs-master | finalize_seismic_dataset.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/finalize_seismic_dataset.m | 2,845 | utf_8 | ce6474ed0a9673dc3c888ba1a8a9d557 | function seismic=finalize_seismic_dataset(seismic,headers,param,parameters)
% Called from "read_segy_file"
global S4M
if S4M.history
seismic=s_history(seismic,'add',seismic.from);
end
% Convert to IEEE format if necesssary
if strcmpi(param.format,'ibm')
if strcmpi(S4M.precision,'single')
seismic.traces=i... |
github | isacra/isacradoctoralstuffs-master | remove_consecutive_blanks.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/remove_consecutive_blanks.m | 1,188 | utf_8 | c79ebac9fb32fe5a632745ddb03f9e19 | function str=remove_consecutive_blanks(str)
% Remove consecutive blanks in the input string (or a cell vector of strings)
% and replace them by a single blank.
% Also remove any leading and trailing blanks.
%
% Written by: E. Rietsch: December 19, 2006
% Last updated:
%
% str=remove_consecutive_blanks(str)
% INP... |
github | isacra/isacradoctoralstuffs-master | wseismic_scrollbar_menu_item.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/wseismic_scrollbar_menu_item.m | 5,179 | utf_8 | 4dac21bb80442d7d124af2e9668a2dac | function menu_handle=wseismic_scrollbar_menu(figure_handle,options_menu_handle,seismic,plotdir)
% Function creates a menu button on the figure with handle "figure_handle" (or
% the current figure) that allows one to add scroll bars to a wiggle seismic plot
%
% Written by: E. Rietsch, August 22, 2005
% Last updated: Nov... |
github | isacra/isacradoctoralstuffs-master | curve_indices.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/curve_indices.m | 2,714 | utf_8 | f29cf2b0f2baba31d2c3a3127b8e5158 | function indices=curve_indices(wlog,mnems,abort)
% Function outputs the column indices of curves in log structure "wlog".
% For any mnemonic in "mnem" for which there is no curve in "wlog" the
% corresponding value of "indices" is set to zero.
% See also: curve_index1
%
% Written by: E. Rietsch: May 2000
% Last update... |
github | isacra/isacradoctoralstuffs-master | menu2edit_seismic.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/menu2edit_seismic.m | 4,719 | utf_8 | 960cbdba8513dec32b6a295c48ff823b | function menu2edit_seismic(figure_handle,axis_handle)
% Create a menu button that allows one to select plot parameters for wiggle plot
% Written by: E. R.: November 20, 2003
% Last updated: September 3, 2004; button legend in red
%
% menu2edit_seismic(figure_handle,axis_handle)
% INPUT
% figure_handle ... |
github | isacra/isacradoctoralstuffs-master | interpf.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/interpf.m | 2,619 | utf_8 | 29bf2f8c3a823b257e166a1878dd53f7 | function ynew=interpf(yold,dxold,dxnew)
% Function interpolates in the frequency domain;
% appends data to mitigate "edge effects" prior to FFT, and removes them afterwards
% assumes that "dxold" is integer multiple of "dxnew" or vice versa
% Written by: E. Rietsch: February 14, 2001
% Last updated: February 24, 2001:... |
github | isacra/isacradoctoralstuffs-master | mylistdlg.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/mylistdlg.m | 6,623 | utf_8 | 01328284249b1d5992d4f2b218c69058 | function [idx,ok]=mylistdlg(strings,varargin)
% Open a list for interactive selection of items; based on Matlab function
% "listdlg"
%
% Written by: E. Rietsch: August 4, 2003
% Last updated: February 10, 2004: change dimensions of dialog box
%
% [idx,ok]=mylistdlg(strings,varargin)
% INPUT
% strings cell v... |
github | isacra/isacradoctoralstuffs-master | gg_pickbox.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/gg_pickbox.m | 2,104 | utf_8 | a95234c4b56d2bad63895bc1379180dd | function pos=gg_pickbox(axis_handle)
% Function to draw a rubberband line and return the start and end points
%
% pos=gg_pickbox(axis_handle)
% INPUT
% axis_handle handle of current axes
% field field in userdata in whoch to store the rectangle coordinates
if nargin == 0
axis_handle=gca;
end
figure... |
github | isacra/isacradoctoralstuffs-master | figure_export_menu.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/figure_export_menu.m | 3,750 | utf_8 | 8811735bf579fec7f92eb64cc2c42537 | function menu_handle=figure_export_menu(figure_handle)
% Creates a menu button on the figure with handle "figure_handle" (or
% the current figure) that allows one to save the figure as a "emf" (Enhanced
% Windows Meta File) for PowerPoint or "eps" (Encapsulated PostScript) for
% LaTeX, or as a JPEG file; does nothing ... |
github | isacra/isacradoctoralstuffs-master | assign_input.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/assign_input.m | 4,666 | utf_8 | 8229f64e41f3b662d7ce0c878a564f25 | function param=assign_input(param,arguments,fcn)
% Input argument "arguments" is a cell array; each cell contains a cell array
% whose first entry is a string representing a keyword; the other entries
% represent parameters.
% This function matches these keywords to fields of the structure "param" and
% replaces the... |
github | isacra/isacradoctoralstuffs-master | create_help_button.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/create_help_button.m | 1,460 | utf_8 | d853087b6e7614371af27d0e75da239d | function create_help_button(funct)
% Create a menu button that displays instructions found in a text file
% with name ['help4',funct,'.txt'] in subdirectory "HelpFiles" in
% directory S4M.mymatlab
%
% Written by: E. Rietsch: December 16, 2005
% Last updated:
%
% create_help_button(funct)
% INPUT
% funct str... |
github | isacra/isacradoctoralstuffs-master | open_segy_file4reading.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/private/open_segy_file4reading.m | 25,438 | utf_8 | 7242f0726c26ff4ac62f472821af34b4 | function [fid,seismic,param,parameters,text_header,binary_header] = ...
open_segy_file4reading(filename,varargin)
% Function opens an SEG-Y file, reads the textual header and the binary file
% header and outputs the file ID, a preliminary seismic data structure
% with empty fields "head... |
github | isacra/isacradoctoralstuffs-master | moperation.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/@struct/moperation.m | 10,828 | utf_8 | cf13c9ef86d5d80b5f5e7ceecf171da2 | function ds=moperation(i1,i2,operator)
% Function multiplies a constant or matrix elementwise with traces
% of a seismic dataset
%
% Written by: E. Rietsch: December 7, 2006
% Last updated:
%
% ds=moperation(i1,i2,operator)
% INPUT
% i1 first operand
% i2 second operand
% At least one of the two op... |
github | isacra/isacradoctoralstuffs-master | uoperation.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Geophysics_3.0/@struct/uoperation.m | 2,104 | utf_8 | a3fd32508bd0459ab4dbf364acbf6b2e | function ds=uoperation(ds,operator)
% Function performs a unary operation on a dataset
%
% Written by: E. Rietsch: December 7, 2006
% Last updated:
%
% ds=uoperation(i1,operator)
% INPUT
% i1 operand
% At least one of the two operands is a dataset.
% operator string defining operation to perform. P... |
github | isacra/isacradoctoralstuffs-master | showcell.m | .m | isacradoctoralstuffs-master/Apps_And_Libs/SeisLab10/S4M/Other/showcell.m | 15,354 | utf_8 | 3fb3aa1da4c8f7a46056ff43e7872f60 | function showcell(varargin)
%SHOWCELL Displays cell array with long strings in the command window.
% SHOWCELL(A) displays the contents of a cell array A in the command
% window. It will format the display so that long strings will display
% appropriately. A can be a cell array of numbers, strings, and/or othe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.