image thumbnail

updated 25 days ago

repnan by Chad Greene

Replace NaNs in a 1D array by interpolation (interpolation, nan, nans)

repnan documentation

repnan(x,method)

image thumbnail

updated 25 days ago

stat by Chad Greene

Get a quick summary of variable statistics in the command window. (who, whos, min)

stat

stat(variable)

image thumbnail

updated 30 days ago

near2 by Chad Greene

Find nearest-neighbor indices of 2D gridded data. (find, interp2, ind2sub)

near2 documentation

near2(X,Y,xi,yi)

image thumbnail

updated 3 months ago

Bedmap2 Toolbox for Matlab by Chad Greene

Transforms Bedmap2 data to lat/lon coordinates. Offers simple commands to extract and/or plot data. (antarctica, mapping, polar)

Overview

bedmap2_interp

outlineashelf

image thumbnail

updated 3 months ago

Plot Antarctic Circumpolar Current Fronts by Chad Greene

Plot the locations of the major fronts associated with the Antarctic Circumpolar Current. (antarctica, acc, antarctic circumpolar...)

plot_acc

plot_acc(FrontType,varargin)

image thumbnail

updated 3 months ago

quivermc by Chad Greene

Plot georeferenced vector fields with color options. (mapping toolbox, quiverm, wind)

quivermc

quivermc(lat,lon,u,v,varargin)

image thumbnail

updated 3 months ago

C2xyz contour matrix to coordinates by Chad Greene

Convert values given by a contour matrix to easy-to-use cells. (contour, contour matrix, contour3)

C2xyz

C2xyz(C)

image thumbnail

updated 3 months ago

scalebar for maps by Chad Greene

A simpler alternative to the built-in Mapping Toolbox function scaleruler. (scaleruler, tufte, mapping)

scalebar

scalebar(varargin)

image thumbnail

updated 4 months ago

Unit Converters by Chad Greene

Convert units of pressure, length, time, force, mass, accel., temp, speed, frequency, area, & more! (engineering, units, conversion)

A2au(A)

A2bs(A)

A2cm(A)

image thumbnail

updated 4 months ago

hfill and vfill by Chad Greene

Simply create horizontal or vertical shaded sections of a plot. (plotting, shading, fill)

hfill and vfill

hfill(ybounds,ColorSpec,varargin)

vfill(xbounds,ColorSpec,varargin)

image thumbnail

updated 7 months ago

Sound Pressure Level Calculator by Chad Greene

Calculates sound pressure level in decibels, given a pressure signal in pascals. (acoustics, sound pressure level, spl)

spl

spl(p_Pa,ref,windowSize,Fs)

image thumbnail

updated 10 months ago

curlm curl for maps by Chad Greene

compute curlz referenced to map coordinates (curl, mapping, wind stress)

curlm(lat,lon,U,V)

image thumbnail

updated 10 months ago

deseason by Chad Greene

Remove the seasonal signal from a daily time series of data. (time series)

deseason(t,y)

image thumbnail

updated 1 year ago

ntitle by Chad Greene

Place a title inside a plot. Reduces title/xlabel ambiguity in figures with multiple subplots. (title, tufte, plotting)

ntitle(titlestring,varargin)

image thumbnail

updated 1 year ago

clip by Chad Greene

Return the values of an array within a given range, optionally return corresponding clipped arrays. (clip, trim, range)

clip(x,xmin,xmax,varargin)

image thumbnail

updated 1 year ago

sciencestagram by Chad Greene

Make your plots look somewhat like they came from the dustiest section of the engineering library. (plotting, throwback, humor)

sciencestagram(figurehandle)

image thumbnail

updated 1 year ago

Get Global Mean Sea Levels by Chad Greene

Acquire time series of global mean sea levels from 1992 to present. (sea level, eustatic sea level ri..., slr)

get_gmsl

get_gmsl_ns

global_mean_sea_level_plotter.m

image thumbnail

updated 2 years ago

Compressibility Factor Calculator by Chad Greene

Calculates the compressibility factor of a gas using the Van der Waals equation of state. (engineering, ideal gas law, van der waals equatio...)

compressibility.m

image thumbnail

updated 2 years ago

Get Land Surface Temperatures by Chad Greene

Acquire land surface temps from Berkeley Earth Surface Temperature study, NOAA, and NASA-Goddard. (climate, best, noaa)

best_tavg.m

giss_tavg.m

noaa_tavg.m

image thumbnail

updated 2 years ago

Fractional position on plots by Chad Greene

Position text or data relative to the frame of a plot, not necessarily relative to the data. (text, plot, xlim)

xput(x_position_fraction)

yput(y_position_fraction)

zput(z_position_fraction)

image thumbnail

updated 2 years ago

Inflation Adjust by Chad Greene

Calculate the present value using the Bureau of Labor and Statistics' Consumer Price Index. (economics, bls, cpi)

inflation_adjust(purchase_prices,purchase_dates)

inflation_stamp_example.m

image thumbnail

updated 2 years ago

Cost of Gas by Chad Greene

Estimate the total cost of gas over the life of a vehicle. (fun, gas, prices)

costofgas(year_or_range,miles_driven,mpg)

image thumbnail

updated 2 years ago

Seawater Acoustic Absorption Calculator by Chad Greene

Returns absorption coefficient a in dB/m, given frequency, temperature, and hydrostatic pressure. (acoustics, seawater, absorption)

seawater_absorption.m

image thumbnail

updated 2 years ago

Prosperetti's Phi calculator by Chad Greene

Returns the Phi argument given by Prosperetti's, The thermal behaviour of oscillating gas bubbles. (acoustics, bubbles)

Prosperetti_Phi(gamma,Dg,omega,ro)

image thumbnail

updated 2 years ago

Methane Hydrate Stability Toolbox by Chad Greene

Determine equilibrium pressure or equilibrium temperature of methane hydrate. (methane hydrate, clathrates, stability)

methane_hyd_eq_press(T_K)

methane_hyd_eq_temp(P_MPa)

methane_hyd_stability(P_MPa,T_K)

image thumbnail

updated 2 years ago

Two-phase medium sound speed calculator by Chad Greene

Uses A.B. Wood's model to calculate the bulk sound speed of a two-phase fluid medium. (acoustics, sound speed)

c_wood2(c1,rho1,c2,rho2,VF)

image thumbnail

updated 2 years ago

Sulfur Hexafluoride Property Lookup by Chad Greene

Function returns properties of SF6, including density, enthalpy, sound speed, specific heats. (sf6, thermodynamic propert..., sound speed)

SF6_props(P_MPa,T_K)

image thumbnail

updated 2 years ago

Minnaert bubble models by Chad Greene

Functions to calculate the radius, volume, or acoustic oscillation frequency of a gas bubble. (acoustics, bubble, bubbles)

minnaert_freq(r_m,P_Pa,rho_l,nu,Z)

minnaert_rad(fo,P_Pa,rho_l,nu,Z)

minnaert_vol(fo,P_Pa,rho_l,nu,Z)

image thumbnail

updated 2 years ago

Sea water freezing temperature calculator by Chad Greene

Function returns the freezing temperature (°C) of seawater given salinity and pressure. (sea, water, seawater)

seawater_freezetemp.m

image thumbnail

updated 2 years ago

Water sound speed calculator by Chad Greene

Calculate the sound speed of water for any given temperature, pressure, and salinity. (acoustics, sonar, sofar)

c_water.m

image thumbnail

updated 2 years ago

Rayleigh Wave Animation by Chad Greene

Animation of the retrograde surface particle motion of a Rayleigh wave. (animation, geophysics, wave propagation)

RayleighWaveSimulator.m

RayleighWaveMotion.mp4

Contact us