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 | gmaze/gmaze_legacy-master | compute_density.m | .m | gmaze_legacy-master/matlab/MIT/compute_density.m | 4,028 | utf_8 | 36bae224b7f16e8e37271cfe1eebea34 | %
% [RHO] = compute_density(SNAPSHOT)
%
% For a time snapshot, this program computes the
% 3D density from potential temperature and salinity fields.
% THETA and SALTanom are supposed to be defined on the same
% domain and grid.
% SALTanom is by default a salinity anomaly vs 35PSU.
% If not, (is absolute value) set ... |
github | gmaze/gmaze_legacy-master | diagWALIN.m | .m | gmaze_legacy-master/matlab/MIT/diagWALIN.m | 6,793 | utf_8 | 3e328421a84b29fad3ba8fbb8139f5d7 | % [F,A,D,CROP] = diagWALIN(FLAG,C1,C2,Qnet,Snet,Classes,dA)
%
% DESCRIPTION:
% Compute the transformation rate of a surface outcrop class (potential
% density or SST) from surface net heat flux Qnet and salt flux Snet
% according to the Walin theory.
%
% INPUTS:
% FLAG : Can either be: 0, 1 or 2
% 0: Out... |
github | gmaze/gmaze_legacy-master | pv_checkpath.m | .m | gmaze_legacy-master/matlab/MIT/pv_checkpath.m | 804 | utf_8 | ae8464cf655e126c93180ede1060a03c | %
% [] = pv_checkpath()
%
% This function detects where the package gmaze_pv is installed
% (the upper level directory where the function volbet2iso
% is found) and ensure that sub-directories are in the path
%
function [] = pv_checkpath()
warning off
% Windows/Linux compatibility
global sla
sla = '/';
if ispc , sla... |
github | gmaze/gmaze_legacy-master | C_compute_potential_vorticity.m | .m | gmaze_legacy-master/matlab/MIT/C_compute_potential_vorticity.m | 12,354 | utf_8 | d41944d24df1010422f8e6270900053b | %
% [Q] = C_compute_potential_vorticity(SNAPSHOT,[WANTSPLPV])
% [Q1,Q2,Q3] = C_compute_potential_vorticity(SNAPSHOT,[WANTSPLPV])
%
% This file computes the potential vorticity Q from
% netcdf files of relative vorticity (OMEGAX, OMEGAY, ZETA)
% and potential density (SIGMATHETA) as
% Q = OMEGAX . dSIGMATHETA/dx + OMEGA... |
github | gmaze/gmaze_legacy-master | compute_MLD.m | .m | gmaze_legacy-master/matlab/MIT/compute_MLD.m | 4,168 | utf_8 | fb69a170a659f0f4ed9cb47d02a1c90c | %
% [MLD] = compute_MLD(SNAPSHOT)
%
% Here we compute the Mixed Layer Depth as:
% MLD = min depth for which : ST > ST(SSS,SST-0.8,p0)
%
% where:
% ST is potential density (kg/m3)
% SST the Sea Surface Temperature (oC)
% SSS the Sea Surface Salinity (PSU-35)
% p0 the Sea Level Pressure (mb)
% EKL is the Ekman la... |
github | gmaze/gmaze_legacy-master | boxcar.m | .m | gmaze_legacy-master/matlab/MIT/subfct/boxcar.m | 2,366 | utf_8 | 845a38ef838998de6f4bab3850f7b316 | % PII = boxcar(C3D,H,X,Y,Z,isoC,dC)
% The boxcar function:
% { isoC-dC/2 <= C3D(iZ,iY,iX) < isoC + dC/2
% PII(isoC,C3D(iZ,iY,iX) = 1 if:{ Z(iZ) > H(iY,iX)
% = 0 otherwise
%
% Rq:
% H may be a single value
% Z and H should be negative
% Z orientatd downward
%
%func... |
github | gmaze/gmaze_legacy-master | coordfromnc.m | .m | gmaze_legacy-master/matlab/MIT/subfct/coordfromnc.m | 500 | utf_8 | 27f965916c615044617eb0afe85a4c03 | % [X,Y,Z] = COORDFROMNC(NC)
%
% Given a netcdf file, return 3D coordinates values
% in X, Y and Z
%
function varargout = coordfromnc(nc)
co = coord(nc);
switch nargout
case 1
varargout(1) = {co{1}(:)};
case 2
varargout(1) = {co{1}(:)};
varargout(2) = {co{2}(:)};
case 3
varargout(1) = {co{1}(:)};
vara... |
github | gmaze/gmaze_legacy-master | getSURFbounds.m | .m | gmaze_legacy-master/matlab/MIT/subfct/getSURFbounds.m | 1,869 | utf_8 | 1e5bbf9dc32382ae2bf8b9fba07db3b3 | % [BN BS BW BE] = getSURFbounds(PII)
%
% Given a 1/0 2D matrix PII, determine faces bounding the surface
%
% INPUT:
% PII is of dimensions: PII(NLAT,NLON)
% with:
% LAT northward
% LON eastward
%
% OUTPUT:
% BN,BS, BW,BE, are 2D matrices like PII, filled with 0 or 1.
% 1 indicates a surface bounding the surface
... |
github | gmaze/gmaze_legacy-master | subfct_getdV.m | .m | gmaze_legacy-master/matlab/MIT/subfct/subfct_getdV.m | 1,479 | utf_8 | 0b697f7904b5ddaa3bc905e33553c018 | % DV = subfct_getdV(DEPTH,LATITUDE,LONGITUDE)
% Compute 3D volume elements matrix from geographical
% axis Z(<0,downward), Y and X
function DV = subfct_getdV(Z,Y,X)
nz = length(Z);
ny = length(Y);
nx = length(X);
DV = zeros(nz,ny,nx);
% Vertical elements:
for iz = 1 : nz % Toward the deep ocean (because DPT<0)
% V... |
github | gmaze/gmaze_legacy-master | diagHatisoC.m | .m | gmaze_legacy-master/matlab/MIT/subfct/diagHatisoC.m | 2,247 | utf_8 | e9730b126e83b32534a33247a95842c5 | % [H,[dH,h,dh]] = diagHatisoC(C,Z,isoC,[dC])
%
% Get depth of C(depth,lat,lon) = isoC
% Z < 0
%
% OUTPUTS:
% H(lat,lon) is the depth determine with the input resolution
% dH(lat,lon) is the thickness of the layer: isoC-dC < C < isoC+dC from H
% h(lat,lon) is a more accurate depth (determined with interpolation)
% dh(l... |
github | gmaze/gmaze_legacy-master | diag_interpallREQ_v0.m | .m | gmaze_legacy-master/matlab/MIT/subfct/diag_interpallREQ_v0.m | 2,850 | utf_8 | a234b7035cc56006465b6715a4b1b0d2 | % NEWFIELD = diag_interpallREQ(FIELD,LON,LAT,netcdf_domain,resolution)
%
% We interpolate linearly FIELD(LAT,LON) on a grid, independant of the dataset
% with a resolution on the domain netcdf_domain.
%
%
function varargout = diag_interpallREQ(varargin);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Resolution:
dresol = varargin{... |
github | gmaze/gmaze_legacy-master | latlon2ingrid_netcdf.m | .m | gmaze_legacy-master/matlab/MIT/subfct/latlon2ingrid_netcdf.m | 4,683 | utf_8 | 0d6a58cf0d5856fcd57d0ec2e0d0b0a9 | % latlon2ingrid_netcdf: Read a bin snapshot from 1/8 simu and record it as netcdf
% latlon2ingrid_netcdf(pathname,pathout, ...
% stepnum,fpref,otab, ...
% lon_c, lon_u, ...
% lat_c, lat_v, ..... |
github | gmaze/gmaze_legacy-master | subfct_getdS.m | .m | gmaze_legacy-master/matlab/MIT/subfct/subfct_getdS.m | 844 | utf_8 | 4dcbe3bbfefea34901fd0982822ab5ab | % DS = subfct_getdS(LAT,LON)
% This function computes the 2D dS surface elements centered
% on LON,LAT
%
function varargout = subfct_getdS(Y,X);
ny = length(Y);
nx = length(X);
if nx == size(X,1)
X = X';
end
if ny == size(Y,1)
Y = Y';
end
%%% Compute the DY:
% Assuming Y is independant of ix:
d = m_lldist([1 1... |
github | gmaze/gmaze_legacy-master | getFLUXbudgetV.m | .m | gmaze_legacy-master/matlab/MIT/subfct/getFLUXbudgetV.m | 6,295 | utf_8 | 11bb4772d7655051dea55015a72e4f67 | % [D1,D2] = getFLUXbudgetV(z,y,x,Fx,Fy,Fz,box,mask)
%
% Compute the two terms:
% D1 as the volume integral of the flux divergence
% D2 as the surface integral of the normal flux across the volume's boundary
%
% Given a 3D flux vector ie:
% Fx(z,y,x)
% Fy(z,y,x)
% Fz(z,y,x)
%
% Defined on the C-grid at U,V,W location... |
github | gmaze/gmaze_legacy-master | getGRD.m | .m | gmaze_legacy-master/matlab/MIT/subfct/getGRD.m | 4,005 | utf_8 | 1f7f2f7c3b7aab76bd74a6fd0d936e49 | % [dCdx dCdy] = getGRD(C,LAT,LON,[flag,grid])
%
% Compute horizontal gradient of a geographical field C(LAT,LON)
%
% OPTIONS:
%
% flag = 0: lat,lon are normal axis coordinates
% flag = 1: lat,lon specify the spacing between coordinates
% ie, length(LAT) = size(C,1) - 1
% and, length(LON) = size(C,2... |
github | gmaze/gmaze_legacy-master | getVOLbounds.m | .m | gmaze_legacy-master/matlab/MIT/subfct/getVOLbounds.m | 2,797 | utf_8 | 9a234edcddef7acb6745f5a5e8b02cf3 | % [BN BS BW BE BT BB] = getVOLbounds(PII)
%
% Given a 1/0 3D matrix PII, determine faces bounding the volume
%
% INPUT:
% PII is of dimensions: PII(NDPT,NLAT,NLON)
% with:
% DPT downward
% LAT northward
% LON eastward
%
% OUTPUT:
% BN,BS, BW,BE, BT,BB are 3D matrices like PII, filled with 0 or 1.
% 1 indicates... |
github | gmaze/gmaze_legacy-master | readrec_cs510.m | .m | gmaze_legacy-master/matlab/MIT/subfct/readrec_cs510.m | 417 | utf_8 | a55622bd47cbda5cf493109ffecd4bf2 | % C = READREC_CS510(fnam,NZ,fldprec)
%
% Get one record from the CS510 run
%
% fnam : string to the file (include path)
% NZ : number of levels to read
% fldprec : float32 or float64
% ouput is: C(510,510,NZ,6)
%
%
function C = readrec_cs510(fnam,NZ,fldprec)
fmt = 'ieee-be';
nx = 510;
ny = 510;
fid = fopen(fna... |
github | gmaze/gmaze_legacy-master | densjmd95.m | .m | gmaze_legacy-master/matlab/MIT/subfct/densjmd95.m | 6,591 | utf_8 | 2d57ce28a5c180fed02ef9875b532c52 | % DENSJMD95: Density of sea water
%=========================================================================
%
% USAGE: dens = densjmd95(S,Theta,P)
%
% DESCRIPTION:
% Density of Sea Water using Jackett and McDougall 1995 (JAOT 12)
% polynomial (modified UNESCO polynomial).
%
% INPUT: (all must have same dim... |
github | gmaze/gmaze_legacy-master | diagVOLU.m | .m | gmaze_legacy-master/matlab/MIT/subfct/diagVOLU.m | 6,107 | utf_8 | 5aed28d20d123ffc884973ce608b2081 | % [V,Cm,E,Vt,CC] = diagVOLU(FLAG,C1,C2,CLASS,LON,LAT,DPT,DV,[Ca(Z,Y,X),Cb(Z,Y,X),...])
%
% DESCRIPTION:
% Compute the volume of water for a particular CLASS of potential
% temperature or density.
% Also compute mean values of additional 3D fields (such as Ca, Cb ...) along
% the CLASS of the analysed field.
%
% The vol... |
github | gmaze/gmaze_legacy-master | diagCatH.m | .m | gmaze_legacy-master/matlab/MIT/subfct/diagCatH.m | 647 | utf_8 | b97fe8e20dee5cfe06a21a3ee6ae8062 | % Ch = diagCatH(C,depth,h)
%
% Get field C(depth,lat,lon) at depth h(lat,lon)
%
% depth < 0
% h < 0
%
% G. Maze, MIT, June 2007
%y
function varargout = diagCatH(C,Z,h)
% 0 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PREPROC
[nz,ny,nx] = size(C);
Ch = zeros(ny,nx);
% 1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
github | gmaze/gmaze_legacy-master | diag_interpallREQ_v1.m | .m | gmaze_legacy-master/matlab/MIT/subfct/diag_interpallREQ_v1.m | 5,502 | utf_8 | 5f577e2adb98ebaa16d3d84e9010311d | % NEWFIELD = diag_interpallREQ(FIELD,LON,LAT,netcdf_domain,resolution,...
% [grid])
%
% We interpolate linearly FIELD(LAT,LON) on a grid, independant of the dataset
% with a resolution on the domain netcdf_domain.
%
% [grid] = 'T' or 'U' or 'V'
% Indicate where the field is on the C-grid
% ... |
github | gmaze/gmaze_legacy-master | dtecco2.m | .m | gmaze_legacy-master/matlab/MIT/subfct/dtecco2.m | 1,040 | utf_8 | c070fc5ddc48406291ef75a863247327 | % date = dtecco2(X,FORM)
%
% If:
% FORM = 0, translate the stepnum X into a date string (yyyymmddHHMM)
% FORM = 1, translate the date string X (yyyymmddHHMM) into a stepnum
%
% 06/08/29
% gmaze@mit.edu
%
function varargout = dtecco2(varargin)
% Test inputs:
if nargin ~= 2
help dtecco2.m
error('dtecco2.m : Wrong ... |
github | gmaze/gmaze_legacy-master | get_plotlist.m | .m | gmaze_legacy-master/matlab/MIT/visu/get_plotlist.m | 1,414 | utf_8 | d159195f815a85059d7d87f2544e0c03 | %
% LIST = get_plotlist(MASTER,SUBDIR)
%
% This function determines the list of pre-defined plots
% available with the MASTER.m in the folder SUBDIR
% LIST is a structure with name and description of each modules.
%
function LIST = get_plotlist(MASTER,SUBDIR)
global sla
% Define suffixe of plot module:
suff = '_pl'... |
github | gmaze/gmaze_legacy-master | logcolormap.m | .m | gmaze_legacy-master/matlab/MIT/visu/logcolormap.m | 1,470 | utf_8 | 3f47786e463dbb8e2f0b6909871f463f | %
% cmap = logcolormap(Ncol,c1,c2,cmapO)
%
%
% 07/10/06
% gmaze@mit.edu
function cmap = logcolormap(Ncol,c1,c2,cmapO);
cmapO = mycolormap(cmapO,Ncol);
colD = [1 1 1];
colU = [0 0 0];
cmapD = [linspace(colD(1),cmapO(1,1),c1*Ncol) ; ...
linspace(colD(2),cmapO(1,2),c1*Ncol) ; ...
linspace(colD(3),cmapO(1,3),c1*Nc... |
github | gmaze/gmaze_legacy-master | videotimeline.m | .m | gmaze_legacy-master/matlab/MIT/visu/videotimeline.m | 964 | utf_8 | d6acbfda1221809bf061c6bb34802bc0 | %
% [] = videotimeline(TIMERANGE,IT,POSITION)
%
% TIMERANGE contains all the time line serie
% TIME contains the current time
%
function varargout = videotimeline(TIME,it,POSIT)
[nt nc] = size(TIME);
DY = .02;
DX = 1/nt;
bgcolor=['w' 'r'];
bdcolor=['k' 'r'];
txtcolor=['k' 'w'];
fts = 8;
figure(gcf);hold on
for i... |
github | gmaze/gmaze_legacy-master | get_plotlistdef.m | .m | gmaze_legacy-master/matlab/MIT/visu/get_plotlistdef.m | 1,592 | utf_8 | dc77557d6686496cae0d45a042c47227 | %
% get_plotlistdef(MASTER,SUBDIR)
%
% This function display description of pre-defined plots
% available with the MASTER.m in the folder SUBDIR
%
% 07/12/06
% gmaze@mit.edu
function LIST = get_plotlistdef(MASTER,SUBDIR)
global sla
% Define suffixe of plot module:
suff = '_pl';
d = dir(SUBDIR);
ii = 0;
% Select ... |
github | gmaze/gmaze_legacy-master | grid_setup.m | .m | gmaze_legacy-master/matlab/MIT/visu/grid_setup.m | 2,505 | utf_8 | dae47186de4acaf9df6698c539fa2738 | % Here we define as global variables grids for u, v, theta and salt
% and also sub domain for the CLIMODE North Atlantic study
function grid_setup
global domain subdomain1 subdomain2 subdomain3 subdomain4
% Load grid
GRID_125
% Setup standard grid variables:
lon_salt=lon125;
lon_thet=lon125;
lon_u=[lon125(1)-36... |
github | gmaze/gmaze_legacy-master | get_plotlistfields.m | .m | gmaze_legacy-master/matlab/MIT/visu/get_plotlistfields.m | 1,742 | utf_8 | 0e840837ad0053334137a5dfc623f217 | %
% get_plotlistfields(MASTER,SUBDIR)
%
% This function returns the list of fields required by
% the modules of MASTER file in SUBDIR
%
% 06/05/2007
% gmaze@mit.edu
function LIST = get_plotlistfields(MASTER,SUBDIR)
global sla
% Define suffixe of module:
suff = '_pl';
d = dir(SUBDIR);
ii = 0;
% Select Matlab file... |
github | gmaze/gmaze_legacy-master | WSEdecomp.m | .m | gmaze_legacy-master/matlab/WSEdecomp/WSEdecomp.m | 6,817 | utf_8 | eac323f413ecf808bb719d0bb55d887e | % [Sf A FX FT] = WSEdecomp(S,DT,DX,[PERIOD],[WAVELENGTH])
% Split S(SPACE,TIME) into: DW/ST/UP-waves
%
% Split the signal S(SPACE,TIME) into its downward/upward space
% propagating and stationnary components via a 2D Fourier decomposition.
% S is a (SPACE,TIME) matrix. We eventually proceed to a space and/or
% time ... |
github | gmaze/gmaze_legacy-master | dispSVD.m | .m | gmaze_legacy-master/matlab/PCAtool/dispSVD.m | 2,300 | utf_8 | f26533297f55b87375b8c1c52efab247 | % dispSVD(typg,CHP1,CHP2,N,expvar) Display SVDs
%
% => Display SVDs
% typg is plot type you want (see plotm.m).
% CHP contains SVDs and is of the form: CHP(iSVD,X,Y)
% N is number of SVD to display
% expvar contained the explained variance of SVDs
%
% Rq: it''s using the plotm function
%
%==============================... |
github | gmaze/gmaze_legacy-master | dispCEOF.m | .m | gmaze_legacy-master/matlab/PCAtool/dispCEOF.m | 1,578 | utf_8 | 59d906f70bad60c60faf2f90a75a7937 | % dispCEOF(CEOF,EXPVAR,PHI,MOD) Display few CEOFs.
%
% => DISPLAY FEW CEOFs.
% CEOF contains all the CEOFs as nCEOF*X*Y.
% EXPVAR is a matrix with the explained variance of each
% CEOFs in %. This is just for title.
% PHI is phase when ploting maps.
% MOD contains explicitly the CEOFs to display.
%
% Rq: it's using th... |
github | gmaze/gmaze_legacy-master | dispSVDnb.m | .m | gmaze_legacy-master/matlab/PCAtool/dispSVDnb.m | 1,722 | utf_8 | a505c9c33f321b57c506ba1b70c7d5c3 | % dispSVDnb(typg,CHP1,CHP2,N,expvar) Display SVDs
%
% => Display SVDs in white and black
% typg is plot type you want (see plotm.m).
% CHP contains SVDs and is of the form: CHP(iSVD,X,Y)
% N is number of SVD to display
% expvar contained the explained variance of SVDs
%
% Rq: it''s using the plotmNB function
%
%=======... |
github | gmaze/gmaze_legacy-master | mat2map.m | .m | gmaze_legacy-master/matlab/PCAtool/mat2map.m | 845 | utf_8 | 1e93f9e16e8d103fb40ddc535d298c57 | % C = MAP2MAT(F,D) Reshaping matrix
%
% => Creation of a 'map' matrix C(TIME,LON,LAT) from D(TIME,PT)
% following mask F(LON,LAT).
% F is a matrix contenaing 1 where you would like to keep the point and
% 0 elsewhere (see mat2map).
%
% Rq: No check is done about the input.
%
% See also: map2mat
%=====================... |
github | gmaze/gmaze_legacy-master | dispEOF.m | .m | gmaze_legacy-master/matlab/PCAtool/dispEOF.m | 3,921 | utf_8 | ae4148afd423653bb3a23e0475cd5c31 | % dispEOF(typg,CHP,N,expvar) Display EOFs
%
% => Display EOFs
% typg is plot type you want (see plotm.m).
% CHP contains EOFs and is of the form: CHP(EOF,X,Y)
% N is number of EOF to display
% expvar contained the explained variance of EOFs
%
% Rq: it''s using the plotm function
%
%=====================================... |
github | gmaze/gmaze_legacy-master | dispSVDnbc.m | .m | gmaze_legacy-master/matlab/PCAtool/dispSVDnbc.m | 1,831 | utf_8 | f015e692c27a642e80b7368b99de2285 | % dispSVDnb(typg,CHP1,CHP2,N,expvar) Display SVDs
%
% => Display SVDs in white and black with correlation form
% typg is plot type you want (see plotm.m).
% CHP contains SVDs and is of the form: CHP(iSVD,X,Y)
% N is number of SVD to display
% expvar contained the explained variance of SVDs
%
% Rq: it''s using the plotm... |
github | gmaze/gmaze_legacy-master | confexpvar.m | .m | gmaze_legacy-master/matlab/PCAtool/confexpvar.m | 2,105 | utf_8 | b1b5c5f376db74f5d345e839f23e1f20 | % [CONF,CONFLEVEL] = CONFEXPVAR(A,B,nsamples,N)
%
% A(Ntime,MmapA), B(Ntime,MmapB) are time-synchronised
% and time-constant sampled data sets.
% MmapA and MmapB are not required to be identic.
% nsamples is what it is (given at least a 100 factor
% will be nice to provide a trustable result).
% N is the max number... |
github | gmaze/gmaze_legacy-master | dispEEOF.m | .m | gmaze_legacy-master/matlab/PCAtool/dispEEOF.m | 1,416 | utf_8 | 385343e0968a6fc2ee2f87e130124ec1 | % dispEEOF(CHP,EXPVAR,DT,NLAG,MOD) Display few EEOFs.
%
% => DISPLAY FEW EEOFs.
% CHP contains all the EEOFs as EOF*LAG*X*Y.
% EXPVAR is a matrix with the explained variance of each
% EEOFs in %. This is just for title.
% DT is time step between maps.
% NLAG is the number of LAG to display.
% MOD contains explicitly t... |
github | gmaze/gmaze_legacy-master | map2mat.m | .m | gmaze_legacy-master/matlab/PCAtool/map2mat.m | 762 | utf_8 | 52f0878c9cce60968baaa9495f64b87f | % D = MAP2MAT(F,C) Reshaping matrix
%
% => Conversion of a 'map' matrix C(TIME,LON,LAT) into a D(TIME,PT) matrix
% under the mask F(LON,LAT).
% F is a matrix contenaing 1 where you would like to keep the point and
% 0 elsewhere.
%
% Rq: No check is done about the input.
%
% See also: mat2map
%=========================... |
github | gmaze/gmaze_legacy-master | dispEEOF_v2.m | .m | gmaze_legacy-master/matlab/PCAtool/dispEEOF_v2.m | 2,205 | utf_8 | f18be3330a1540a1d02fc7e3f5c17b59 | % dispEEOF_v2(CHP,PC,EXPVAR,DT,NLAG,MOD) Display few EEOFs with their
% PC time evolution
%
% => DISPLAY FEW EEOFs with their PC time evolution.
% CHP contains all the EEOFs as EOF*LAG*X*Y.
% PC contains all the PCs.
% EXPVAR is a matrix with the explained variance of each
% EEOFs i... |
github | gmaze/gmaze_legacy-master | caleof.m | .m | gmaze_legacy-master/matlab/PCAtool/caleof.m | 6,129 | utf_8 | 60243591ab6661087e774a02f44962ed | % [EOFs,PC,EXPVAR] = CALEOF(M,N,METHOD) Compute EOF
%
% => Compute the Nth first EOFs of matrix M(TIME,MAP).
% EOFs is a matrix of the form EOFs(N,MAP), PC is the principal
% components matrix ie it has the form PC(N,TIME) and EXPVAR is
% the fraction of total variance "explained" by each EOF ie it has
% the form EXPVA... |
github | gmaze/gmaze_legacy-master | listVarLongName.m | .m | gmaze_legacy-master/matlab/codes/netcdf_builtin/+netcdf/listVarLongName.m | 3,289 | utf_8 | 1ce35e818456f293a281e4d987b7047a | % listVarLongName List variables long name of a netcdf object
%
% [LongName_list VarName_list VarID_list] = netcdf.listVarLongName(ncid)
%
% Give back the list of long names of all variables (not dimensions) of
% the netcdf object ncid.
% If no output are requested, simply display the list on screen.
%
% Created: 201... |
github | gmaze/gmaze_legacy-master | listVar.m | .m | gmaze_legacy-master/matlab/codes/netcdf_builtin/+netcdf/listVar.m | 2,899 | utf_8 | ab21db3f08a4db87d236186aaabca3ab | % listVar List all variables of a netcdf
%
% [] = netcdf.listVar(ncid)
%
% List all variables of a netcdf
%
% Created: 2011-11-28.
% Copyright (c) 2011, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, ... |
github | gmaze/gmaze_legacy-master | DimVar.m | .m | gmaze_legacy-master/matlab/codes/netcdf_builtin/+netcdf/DimVar.m | 2,698 | utf_8 | 64145d3762d563fad7710b160ec51a00 | % DimVar Return dimensions id and name of a variable
%
% [Dim_ids Dim_names Dim_length] = netcdf.DimVar(ncid,VAR)
%
% Return dimensions id/name/length for the variable with name or id given by VAR.
% If no output are specify, results are listed on screen.
%
% Created: 2011-11-28.
% Copyright (c) 2011, Guillaume Maze (... |
github | gmaze/gmaze_legacy-master | findVarID.m | .m | gmaze_legacy-master/matlab/codes/netcdf_builtin/+netcdf/findVarID.m | 2,565 | utf_8 | 7b14174257963b51030514153534a2c5 | % findVarID Find a VarID
%
% VARID = netcdf.findVarID(NCID,VARNAMELIST)
%
% Find VARID of the variable name given in VARNAMELIST in the netcdf pointer NCID.
%
% 'VARNAMELIST' is a cell of string, so that it can contains more than version of
% the variable name. This is usefull in case you don't exactly know the name
... |
github | gmaze/gmaze_legacy-master | julian2greg.m | .m | gmaze_legacy-master/matlab/codes/mcentral/julian2greg.m | 2,387 | utf_8 | 2e235183d8e90795ad3fded509b00db4 | %julian2greg This function converts the Julian dates to Gregorian dates.
%
% 0. Syntax:
% [day,month,year,hour,min,sec,dayweek] = julian2greg(JD)
%
% 1. Inputs:
% JD = Julian date.
%
% 2. Outputs:
% year, month, day, dayweek = date in Gregorian calendar.
% hour, min, sec = time at universal tim... |
github | gmaze/gmaze_legacy-master | barwitherr.m | .m | gmaze_legacy-master/matlab/codes/mcentral/barwitherr.m | 2,654 | utf_8 | 65cc7affb29eeb2a3583bf9c0b9e808a | %barwitherr Make a bar plot with errors
%
% [bh eh] = barwitherr(err,val);
%
% This is a simple extension of the bar plot to include error bars. It
% is called in exactly the same way as bar but with an extra input
% parameter "errors" passed first.
%
% Parameters:
% errors - the errors to be plotted
% var... |
github | gmaze/gmaze_legacy-master | kde.m | .m | gmaze_legacy-master/matlab/codes/mcentral/kde.m | 5,685 | utf_8 | a908775c515a17d0e1ee26466d9cf2e7 | function [bandwidth,density,xmesh,cdf]=kde(data,n,MIN,MAX)
% [bandwidth,density,xmesh,cdf]=kde(data,n,MIN,MAX)
%
% Reliable and extremely fast kernel density estimator for one-dimensional data;
% Gaussian kernel is assumed and the bandwidth is chosen automatically;
% Unlike many other implementations... |
github | gmaze/gmaze_legacy-master | peakfit.m | .m | gmaze_legacy-master/matlab/codes/mcentral/peakfit.m | 89,726 | utf_8 | 629b2b5c2d0d3e3bd7fecc8bd1c609fa | function [FitResults,LowestError,baseline,BestStart,xi,yi,BootResults]=peakfit(signal,center,window,NumPeaks,peakshape,extra,NumTrials,start,autozero,fixedparameters,plots,bipolar,minwidth)
% A command-line peak fitting program for time-series signals, written as a
% self-contained Matlab function in a single m-file.... |
github | gmaze/gmaze_legacy-master | patchline.m | .m | gmaze_legacy-master/matlab/codes/mcentral/patchline.m | 3,812 | utf_8 | eb106a55c884f31c460bacfead7472aa | function p = patchline(xs,ys,varargin)
% Plot lines as patches (efficiently)
%
% SYNTAX:
% patchline(xs,ys)
% patchline(xs,ys,zs,...)
% patchline(xs,ys,zs,'PropertyName',propertyvalue,...)
% p = patchline(...)
%
% PROPERTIES:
% Accepts all parameter-values accepted by PATCH.
%
% DESCRI... |
github | gmaze/gmaze_legacy-master | outliers.m | .m | gmaze_legacy-master/matlab/codes/mcentral/outliers.m | 8,181 | utf_8 | a98ef72329d0e4bca8d98d3aead161e7 | %outliers function: Remove outliers based on Thompson Tau:
% Summary: outliers are detected using Thompson Tau method and turned to
% NaN in the output.
%
% Function Decription:
% This function accepts a vector or matrix and detects the outlier values
% in the vector/matrix using Thopson Tau method, which is ba... |
github | gmaze/gmaze_legacy-master | bin2mat.m | .m | gmaze_legacy-master/matlab/codes/mcentral/bin2mat.m | 3,048 | utf_8 | b08d0d83311c2b379fb4e513f595aba6 | % BIN2MAT - create a 2D matrix from scattered data without interpolation
%
% ZG = BIN2MAT(X,Y,Z,XI,YI) - creates a grid from the data
% in the (usually) nonuniformily-spaced vectors (x,y,z)
% using grid-cell averaging (no interpolation). The grid
% dimensions are specified by the uniformily spaced vect... |
github | gmaze/gmaze_legacy-master | clusterData.m | .m | gmaze_legacy-master/matlab/codes/mcentral/clusterData.m | 6,774 | utf_8 | 944610be5bb07e0177c51b623875a102 | function [clusters,clusterInds,clusterBounds] = clusterData(data, sensitivity)
% Clusters an MxN array of data into an unspecified number (P) of bins.
%
% No a priori knowledge of the number of bins, or the distance between
% bins, is required. This approach relies on the relative difference
% between (sorted) ele... |
github | gmaze/gmaze_legacy-master | fminsearchbnd.m | .m | gmaze_legacy-master/matlab/codes/mcentral/fminsearchbnd.m | 8,139 | utf_8 | 1316d7f9d69771e92ecc70425e0f9853 | function [x,fval,exitflag,output] = fminsearchbnd(fun,x0,LB,UB,options,varargin)
% FMINSEARCHBND: FMINSEARCH, but with bound constraints by transformation
% usage: x=FMINSEARCHBND(fun,x0)
% usage: x=FMINSEARCHBND(fun,x0,LB)
% usage: x=FMINSEARCHBND(fun,x0,LB,UB)
% usage: x=FMINSEARCHBND(fun,x0,LB,UB,options)
% usage: x... |
github | gmaze/gmaze_legacy-master | AdvancedColormap.m | .m | gmaze_legacy-master/matlab/codes/mcentral/AdvancedColormap.m | 64,660 | utf_8 | 05ab7e25be85ab5234cdeed32a4d15f3 | function [map,varargout] = AdvancedColormap(command,varargin)
%ADVANCEDCOLORMAP Performs advaced colormap operations
%
% cmap = AdvancedColormap;
% Returns current colormap, much like COLORMAP does,
% but new figure is not created
%
% AdvancedColormap('AddColormapControls')
% h = AdvancedColormap('AddColor... |
github | gmaze/gmaze_legacy-master | arrow.m | .m | gmaze_legacy-master/matlab/codes/mcentral/arrow.m | 55,315 | utf_8 | 787b7d4f5ca4550a0edec310f6a2d5f8 | function [h,yy,zz] = arrow(varargin)
% ARROW Draw a line with an arrowhead.
%
% ARROW(Start,Stop) draws a line with an arrow from Start to Stop (points
% should be vectors of length 2 or 3, or matrices with 2 or 3
% columns), and returns the graphics handle of the arrow(s).
%
% ARROW uses the mouse (cl... |
github | gmaze/gmaze_legacy-master | Draw_Tree.m | .m | gmaze_legacy-master/matlab/codes/mcentral/Draw_Tree.m | 12,317 | utf_8 | 8a18901fc3b0555766eadd71e45d383f | function Draw_Tree(p,pre,x)
%Function which visualizes general, directed or undirected, rooted trees
% Input variables:
% p: is the vector of parent pointers, (in which p(r) = r implies that r
% is the root)
% x: is a vector which describes the arcís directions.
% For any non root node i, x(i) = 1, ( x(i) = -1) impl... |
github | gmaze/gmaze_legacy-master | sw_vmodes.m | .m | gmaze_legacy-master/matlab/codes/mcentral/sw_vmodes.m | 5,335 | utf_8 | 1eaefab7fca3682d8ce0627ab64f8bc2 | % SW_VMODES calculate vertical modes in a flat-bottomed ocean.
%
% [Vert,Hori,Edep,PVel]=sw_vmodes(z,N,clat,nmodes);
% Inputs:
% z is in m (higher positive the deeper you go).
% N is in rad/sec is the buoyancy frequency. Don't pass in imaginary or
% negative buoyancy frequencies - they will be ignored. Best done usin... |
github | gmaze/gmaze_legacy-master | dirr.m | .m | gmaze_legacy-master/matlab/codes/mcentral/dirr.m | 9,343 | utf_8 | a7cf967d24311f4b36b75494159971b9 | % DIRR Lists all files in the current directory and sub directories recursively.
%
% [LIST] = DIRR(PATH)
% Returns a structure LIST with the same fieldnames as returned
% by LIST = DIR(PATH)
% PATH can contain wildcards * and ? after the last \ or / (filename
% filter)
% The content of each directory in PATH i... |
github | gmaze/gmaze_legacy-master | sinefit.m | .m | gmaze_legacy-master/matlab/codes/mcentral/sinefit.m | 14,406 | utf_8 | 5d1d8bbba58623636683b6b0ba302d1f | function varargout = sinefit(varargin)
% params = sinefit(yin,t,f)
% [params,yest] = sinefit(yin,t,f)
% [params,yest] = sinefit(yin,t,f,verbose)
% [params,yest] = sinefit(yin,t,f,verbose,plotflag)
% [params,yest] = sinefit(yin,t,f,verbose,plotflag,searchflag)
% [params,yest,yres] = sinefit(yin,t,...)
% [params,y... |
github | gmaze/gmaze_legacy-master | fminsearchcon.m | .m | gmaze_legacy-master/matlab/codes/mcentral/fminsearchcon.m | 11,330 | utf_8 | c52011ee59580c69f3872d1b59630088 | function [x,fval,exitflag,output]=fminsearchcon(fun,x0,LB,UB,A,b,nonlcon,options,varargin)
% FMINSEARCHCON: Extension of FMINSEARCHBND with general inequality constraints
% usage: x=FMINSEARCHCON(fun,x0)
% usage: x=FMINSEARCHCON(fun,x0,LB)
% usage: x=FMINSEARCHCON(fun,x0,LB,UB)
% usage: x=FMINSEARCHCON(fun,x0,LB,UB,A,b... |
github | gmaze/gmaze_legacy-master | usercolormap.m | .m | gmaze_legacy-master/matlab/codes/mcentral/usercolormap.m | 6,212 | utf_8 | 14ce73f5b793e59fe61e02085c8989dd | % USERCOLORMAP Create a color map.
%
% USERCOLORMAP(COLOR1,COLOR2,COLOR3,...) creates a colormap
% with colors specified by 1x3 vectors (COLOR1, COLOR2,
% COLOR3...).
%
% When the number of input colors are three for example,
% the function linearly interpolates every column of a
% 3x3 matrix ... |
github | gmaze/gmaze_legacy-master | removeoutliers.m | .m | gmaze_legacy-master/matlab/codes/mcentral/removeoutliers.m | 3,454 | utf_8 | cd6b588b8f1f222b9951c34c3ef85310 | %REMOVEOUTLIERS Remove outliers from data using the Thompson Tau method.
%
% [dataout ireject] = removeoutliers(datain)
%
% For vectors, REMOVEOUTLIERS(datain) removes the elements in datain that
% are considered outliers as defined by the Thompson Tau method (replace them
% by NaNs). This applies to any data... |
github | gmaze/gmaze_legacy-master | winsinc.m | .m | gmaze_legacy-master/matlab/codes/mcentral/winsinc.m | 6,469 | utf_8 | 765e20c68c42501272e74326bd80fb54 | % WINSINC Applies a windowed sinc filter
%
% USAGE:
% [xf,Rh,Fh] = winsinc(x,dt,fc,ns,win,ftype,fo)
%
% DESCRIPTION:
% Windowed Sinc Filter.
% This is a digital symetric non-recursive filter
% which can be Lowpass, Highpass, or Bandpass
% by using a windowed sinc function.
% Non-Recursive filters ... |
github | gmaze/gmaze_legacy-master | ps2pdf.m | .m | gmaze_legacy-master/matlab/codes/mcentral/ps2pdf.m | 15,528 | utf_8 | 8b47693ed080adacecb98370cc52b787 | function ps2pdf(varargin)
%PS2PDF Function to convert a PostScript file to PDF using Ghostscript
%
% Converts a postscript file into PDF. The resulting PDF file will contain
% one page for each page defined in the postscript files, so a multi-page
% postscript file, like those generated by using the '-append' option... |
github | gmaze/gmaze_legacy-master | hypsometry.m | .m | gmaze_legacy-master/matlab/codes/mcentral/hypsometry.m | 4,770 | utf_8 | a46e5846520117d24ffb942a143f1294 | % HYPSOMETRY Hypsometric Integral
%
% [i] = HYPSOMETRY(raster, classes, options, Sa, Sb);
% PURPOSE: calculate the hypsometric integral of a raster w/ n classes and
% plot the hypsometry curve.
% Returns scalar [i] with hypsometric integral
% ----------------------------------------------------------... |
github | gmaze/gmaze_legacy-master | gtrack.m | .m | gmaze_legacy-master/matlab/codes/mcentral/gtrack.m | 4,609 | utf_8 | 1bf74b2e81035a90ebdb5771b75f6490 | function varargout = gtrack(newVarName,titleFmt)
% GTRACK Track mouse position and show coordinates in figure title.
%
% GTRACK Activates GTRACK. Once it is active the mouse position is
% constantly tracked and printed on the figure title. A left-click will
% print the coordinates in the command line and store them... |
github | gmaze/gmaze_legacy-master | construct_segk.m | .m | gmaze_legacy-master/matlab/codes/mcentral/construct_segk.m | 2,954 | utf_8 | c832073d117a7a11277ee0a3102775f2 | %
% Fonction
% --------
%
% NE REQUIERT QUE LES INDICES DU PROFIL DANS SA GLOBALITE
%
% 1) Calcule les coefficients d'une droite à partir de 2 points
% -------------------------------------------------------------
% Equation de la droite: y = a x + b
% On connait: les points (x1,y1) et (x2,y2) repérés par leur indice ... |
github | gmaze/gmaze_legacy-master | SandM_gm.m | .m | gmaze_legacy-master/matlab/codes/mcentral/SandM_gm.m | 14,036 | utf_8 | 8a8a47626c943ed4ad2faf9ff42d6a68 | %
% Fonction
% Application de la methode SPLIT & MERGE pour definir la MLD
%
% [mld,nb_pb,a,nb_seg_merge] = SandM_gm(phi,deph,eps,plt)
%
% En entrée:
% - phi (nz,1) : profil sur lequel on travaille (densité, salinité, température)
% - deph (nz,1): profondeur (> 0)
% - eps: choix la norme d'erreur qu... |
github | gmaze/gmaze_legacy-master | machine_list.m | .m | gmaze_legacy-master/matlab/codes/inout/machine_list.m | 2,735 | utf_8 | 2f7a5e73373163250457d27b60b5ec2b | % machine_list List all network machine with system command 'nslookup'
%
% [] = machine_list(DOMAIN)
%
% From: nslookup DOMAIN, iterates on the III = 1:255 ip
% of XXX.XXX.III to get the list of machine's names available.
% No ping is done, so no informations about the machine's
% status is provided.
% The machine lis... |
github | gmaze/gmaze_legacy-master | helptocxml2html.m | .m | gmaze_legacy-master/matlab/codes/inout/helptocxml2html.m | 7,465 | utf_8 | d85eccd08dbcb4bc7fd671e361bef0e4 | % helptocxml2html H1LINE
%
% [] = helptocxml2html()
%
% HELPTEXT
%
% Created: 2010-06-12.
% Copyright (c) 2010, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or without
% modification, are permi... |
github | gmaze/gmaze_legacy-master | nojvmwaitbar.m | .m | gmaze_legacy-master/matlab/codes/inout/nojvmwaitbar.m | 2,476 | utf_8 | 7ef50d0f37add7efb12cd20e79743198 | % nojvmwaitbar Progress waitbar for Matlab running without JVM
%
% nojvmwaitbar(N,i,[TITLE])
%
% Display a progress waitbar of fractional length i versus N
% with an optional message TITLE.
%
% Eg:
% for ii=1:100
% nojvmwaitbar(100,ii,sprintf('line1\nline2'));
% pause(1/20);
% end
%
% Created: 2010-03-26.
% Copyrig... |
github | gmaze/gmaze_legacy-master | pllist.m | .m | gmaze_legacy-master/matlab/codes/inout/pllist.m | 1,246 | utf_8 | 38c3a05c64f11451da9e16ee98e3679a | % pllist Shortcut for function get_plotlistdef(MASTER,'.')
%
% [LIST] = pllist(MASTER,[SUBDIR])
%
% Simply execute:
% get_plotlistdef(MASTER,SUBDIR);
%
% See also:
% get_plotlistdef
%
% Created: 2009-08-25.
% Copyright (c) 2009 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you c... |
github | gmaze/gmaze_legacy-master | h1line.m | .m | gmaze_legacy-master/matlab/codes/inout/h1line.m | 3,265 | utf_8 | eedfe161883b6d96a647754e337e6dae | % h1line Search for text in h1 lines
%
% [] = h1line(PATTERN)
%
%
% Created: 2013-07-17.
% Copyright (c) 2013, Guillaume Maze (Ifremer, Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or without
% modification, a... |
github | gmaze/gmaze_legacy-master | growl.m | .m | gmaze_legacy-master/matlab/codes/inout/growl.m | 3,630 | utf_8 | a99453def213b91b4ba2831c2ad09f14 | % growl Send a notification to Growl
%
% [] = growl(MESSAGE,[TITLE,STICKY,PRIORITY])
%
% Send a notification to Growl.
%
% Inputs:
% MESSAGE (double or string): 1 single line message
% TITLE (double or string): Title of the notification
% STICKY: 0 (default) or 1 to indicate if the notification should stick on screen
... |
github | gmaze/gmaze_legacy-master | strins.m | .m | gmaze_legacy-master/matlab/codes/inout/strins.m | 927 | utf_8 | 5cd84cd5a0cb677c6d280ae620dfa3ac | % strins Insert a string into another
%
% [] = strins(STR,II,STR2)
%
% Insert string STR2 into string STR at index II
%
%
% Created: 2009-09-21.
% Copyright (c) 2009 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the
% terms of the ... |
github | gmaze/gmaze_legacy-master | get_plotlist.m | .m | gmaze_legacy-master/matlab/codes/inout/get_plotlist.m | 1,564 | utf_8 | c7dd5fc3a7e11788f63a083861789859 | % get_plotlist Return description of diagnostic/plot files
%
% LIST = get_plotlist(MASTER,SUBDIR)
%
%
% Rev. by Guillaume Maze on 2013-07-03: Get rid of variables sla, using fullfile
% This function determines the list of pre-defined plots
% available with the MASTER.m in the folder SUBDIR
% LIST is a structure with n... |
github | gmaze/gmaze_legacy-master | jvmwaitbar.m | .m | gmaze_legacy-master/matlab/codes/inout/jvmwaitbar.m | 3,117 | utf_8 | 908a1d95b3d12ff233ef23d716691250 | % jvmwaitbar Progress wait bar for Matlab running with Java on console
%
% jvmwaitbar(N,i,[TITLE])
%
% Display a progress waitbar of fractional length i versus N
% with an optional message TITLE.
%
% Eg:
% for ii=1:100
% jvmwaitbar(100,ii,sprintf('single line text'));
% pause(1/20);
% end
%
% Created: 2013-03-11.
%... |
github | gmaze/gmaze_legacy-master | ltp.m | .m | gmaze_legacy-master/matlab/codes/inout/ltp.m | 2,794 | utf_8 | ebed5eae78719515b7352cd869d47ecb | % ltp List directory as ls -rtl
%
% [] = ltp([dir])
%
% LTP displays the results of the 'ls -rtl' command on UNIX. On UNIX,
% LTP returns a character row vector of filenames separated
% by tab and space characters. On Windows, LTP returns an m-by-n
% character array of filenames, where m is the number of fi... |
github | gmaze/gmaze_legacy-master | getip.m | .m | gmaze_legacy-master/matlab/codes/inout/getip.m | 987 | utf_8 | 80ec4919e1b11416330ffbe9e74cd6a7 | % GETIP Return the computer network IP address
%
% IP = GETIP()
% Return the computer network IP address as given
% by the system command: net lookup $HOST
%
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the te... |
github | gmaze/gmaze_legacy-master | wssize.m | .m | gmaze_legacy-master/matlab/codes/inout/wssize.m | 2,494 | utf_8 | 1b8daf00d4c1c77e27cd0d832eb16beb | % wssize H1LINE
%
% [] = wssize()
%
% HELPTEXT
%
% Created: 2009-11-30.
% Copyright (c) 2009, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that... |
github | gmaze/gmaze_legacy-master | readh1line.m | .m | gmaze_legacy-master/matlab/codes/inout/readh1line.m | 2,672 | utf_8 | 480e42751d0025487e3ddb4e6ab56232 | % readh1line Read the H1 line of a matlab script file
%
% h1line = readh1line(file)
%
% Return the H1 line of a matlab script file as a string without the trailing %.
%
% Created: 2013-07-17.
% Copyright (c) 2013, Guillaume Maze (Ifremer, Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guill... |
github | gmaze/gmaze_legacy-master | grep.m | .m | gmaze_legacy-master/matlab/codes/inout/grep.m | 6,006 | utf_8 | 9ddccc245a5e274f50014ca2462f1d18 | % grep Grep a string into definitions of functions
%
% [TB] = grep(PATTERN,[PATH])
%
% Scan the optional folder name [PATH] (by default look into ~/matlab/codes/*)
% for matlab functions and grep PATTERN into the definition
%
% Example:
% grep('mean')
%
% See Also: gmat
%
% Created: 2009-08-25.
% Copyright (c) 2009 G... |
github | gmaze/gmaze_legacy-master | ltx_dlist.m | .m | gmaze_legacy-master/matlab/codes/inout/ltx_dlist.m | 4,813 | utf_8 | 2804be109b1400504d806e8fa10276c6 | % LaTeXlist Copy a LaTeX file TeX ressources to a local folder
%
% [] = LaTeXlist(LaTeXFileName)
%
% Sparse LaTeXFileName log file to identify all .cls, .sty and .cfg
% files required to compile LaTeXFileName, and copy them to a folder
% named: <LaTeXFileName>_LaTeX_ressources.
% A zip archive is also created.
%
% Not... |
github | gmaze/gmaze_legacy-master | fstrrep.m | .m | gmaze_legacy-master/matlab/codes/inout/fstrrep.m | 2,182 | utf_8 | 23429c9303d5ac0f2bc776515c218dbf | % fstrrep Replace string with another into a text file
%
% [] = fstrrep(FILE,S1,S2)
%
% Replace all occurences of the string S1 into text file FILE with the
% string S2.
%
% Created: 2010-12-08.
% Copyright (c) 2010, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumema... |
github | gmaze/gmaze_legacy-master | tbcont.m | .m | gmaze_legacy-master/matlab/codes/inout/tbcont.m | 32,663 | utf_8 | a4ea107693da9db632d859e0259434e2 | % TBCONT Audit a directory and create html/wiki pages and a table of content
%
% [] = tbcont(PATH_TO_DIR,[OPTION1,VALUE1,...])
%
% Scan the directory PATH_TO_DIR and create html/wiki pages and table of content for
% matlab script files (*.m).
%
% The function creates under PATH_TO_DIR:
% - a tbcont.html file with an i... |
github | gmaze/gmaze_legacy-master | abspath.m | .m | gmaze_legacy-master/matlab/codes/inout/abspath.m | 1,358 | utf_8 | c17062981adf31fe02a9fdd9010de199 | % ABSPATH Relative to Absolute path function
%
% ABSOLUTE_PATH = ABSPATH(RELATIVE_PATH)
%
% Replace any occurence of a "~" into input path
% by the absolute home directory given by shell
% variable $HOME
%
% Created by Guillaume Maze on 2008-10-28.
% Copyright (c) 2008 Guillaume Maze.
% Revised: 2016-11-04 (G. Maze) ... |
github | gmaze/gmaze_legacy-master | wssave.m | .m | gmaze_legacy-master/matlab/codes/inout/wssave.m | 3,403 | utf_8 | 27b3d0c3f6af6b520ad200cdfbd64655 | % wssave Save all (or list of) variables from the caller workspace into the base workspace
%
% wssave() Save all variables from the caller workspace to the base workspace.
%
% wssave('var') Save variable named 'var' from the caller workspace to the base workspace.
%
% wssave('pat*') List all variables with names 'pat... |
github | gmaze/gmaze_legacy-master | remindme.m | .m | gmaze_legacy-master/matlab/codes/inout/remindme.m | 4,231 | utf_8 | 32479d6e773068e646581934132d9a0a | % remindme Reminder using crontab and growl
%
% [] = remindme(TIME,[TXT])
%
% This function use growlnotify to send you a reminder with message TXT at
% time given by TIME (as returned by datenum).
%
% Inputs:
% TIME is a serial date number as return by datenum.
% It can also be a string of the form 'HH:MM' to use th... |
github | gmaze/gmaze_legacy-master | stralign.m | .m | gmaze_legacy-master/matlab/codes/inout/stralign.m | 2,276 | utf_8 | fc237c4f22476c962c17ba499052c93d | % stralign Align/Justify a string within a given sized blank space
%
% STR = stralign(L,STR,JUST)
%
% Justify to JUST string STR within a blanck space of length L.
% L is double, STR is char and JUST can be any string of:
% 'right','left','center'.
%
% Example:
% t = stralign(30,'hello world !','right')
% will produc... |
github | gmaze/gmaze_legacy-master | sep.m | .m | gmaze_legacy-master/matlab/codes/inout/sep.m | 2,564 | utf_8 | 63d1d9cdd2170a59269df31634bcfe2a | % sep Draw/Create a horizontal line on the terminal
%
% STRING = sep([TYPE,TITLE])
%
% Draw a horizontal block separator line on the terminal.
% By use the character TYPE: '-'.
% Eventually center a title in the line with string TITLE.
% If no output, directly display the line.
%
% Created: 2011-11-28.
% Copyright (c)... |
github | gmaze/gmaze_legacy-master | myqst.m | .m | gmaze_legacy-master/matlab/codes/inout/myqst.m | 8,503 | utf_8 | c75657455dc945b0554ce18f293e969d | % MYQST Display qstat results
%
% [JOBLIST] = MYQST([ORDER])
% Display qstat results
%
% This function displays on a table the results of 'qstat -u <user>'
% ORDER indicates how to sort the results. It is a number designating
% of the output columns:
% 1 - ID : Job id
% 2 - Log : This is the name of the job
% 3 - St... |
github | gmaze/gmaze_legacy-master | serveraddress.m | .m | gmaze_legacy-master/matlab/codes/inout/serveraddress.m | 2,495 | utf_8 | 53d4e7641d6c613be5677704be78c756 | % SERVERADDRESS Display nslookup output
%
% [server,addserver,name,addnam] = serveraddress()
%
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
% the Free... |
github | gmaze/gmaze_legacy-master | fmv.m | .m | gmaze_legacy-master/matlab/codes/inout/fmv.m | 2,042 | utf_8 | e6f6c035c569a6b81d725a1f43a1f5f0 | % fmv System command move on a file
%
% [] = fmv(NAME,NEWNAME)
%
% Move file NAME as NEWNAME, using system command mv.
%
% Created: 2010-12-08.
% Copyright (c) 2010, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and b... |
github | gmaze/gmaze_legacy-master | plgrep.m | .m | gmaze_legacy-master/matlab/codes/inout/plgrep.m | 1,788 | utf_8 | 2746bd3dfaf61b67bc7ac387edf52ff6 | % plgrep Grep a string into definitions of sub plots/diagnostics
%
% [] = plgrep(pattern,[MASTER,SUBDIR])
%
%
%
%
% Created: 2009-08-25.
% Copyright (c) 2009 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the
% terms of the GNU Gen... |
github | gmaze/gmaze_legacy-master | qstat.m | .m | gmaze_legacy-master/matlab/codes/inout/qstat.m | 1,262 | utf_8 | e5a4417ffb21942fcc07f0c9c803eb9c | % QSTAT Return command qstat -u user outputs
%
% [tl] = qstat([USER])
%
% Execute the system command: qstat -u USER
% and give back the list
%
%
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the terms of the GNU ... |
github | gmaze/gmaze_legacy-master | get_plotlistdef.m | .m | gmaze_legacy-master/matlab/codes/inout/get_plotlistdef.m | 3,562 | utf_8 | 3f02551ce615bfd5ed76f287a83ee9a5 | %get_plotlistdef Display/return description of diagnostic files
%
% [LIST] = get_plotlistdef(MASTER,SUBDIR)
%
% This function display a description of pre-defined plots/diag
% available with the MASTER.m in the folder SUBDIR
%
% Example:
% get_plotlistdef('hydro_selected_O2','.');
% % will list all hydro_selected_O2_p... |
github | gmaze/gmaze_legacy-master | finish.m | .m | gmaze_legacy-master/matlab/codes/inout/finish.m | 1,863 | utf_8 | d548f83e05577905cc6e4107564d475a | % finish Terminate a Matlab session
%
% [] = finish()
%
% Terminate a Matlab session and change the terminal name back to Default
%
% Created: 2010-07-13.
% Copyright (c) 2010, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in s... |
github | gmaze/gmaze_legacy-master | wsload.m | .m | gmaze_legacy-master/matlab/codes/inout/wsload.m | 4,554 | utf_8 | c35aab2c1d7245f810d5e0171d9cf272 | % wsload Load all (or list of) variables of the base workspace into a function workspace
%
% wsload() Load all variables from the base workspace to the caller workspace.
%
% wsload('var') Load variable named 'var' from the base workspace to the caller workspace.
%
% wsload('pat*') List all variables with names 'pat*'... |
github | gmaze/gmaze_legacy-master | ltx_tblo.m | .m | gmaze_legacy-master/matlab/codes/inout/ltx_tblo.m | 2,347 | utf_8 | 5c18d22101d7d76c343aa2ef04771215 | % ltx_tblo Print opening LaTeX table lines
%
% [] = ltx_tblo()
%
% HELPTEXT
%
% Created: 2010-11-10.
% Copyright (c) 2010, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or without
% modification... |
github | gmaze/gmaze_legacy-master | fopenn.m | .m | gmaze_legacy-master/matlab/codes/inout/fopenn.m | 1,271 | utf_8 | 1f3364c74c39dd04bd845564872299d3 | % FOPENN Open a file whithout taking care of slash in file name
%
% This the same function as the built-in but before calling it,
% a test on the filename format is done: / on unix system are replaced
% by \ of windows if the 'computer' Matlab command return PCWIN.
%
% See also FOPEN, FCLOSE, FREWIND, FREAD, FWRITE,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.