image thumbnail

updated 1 day ago

Post-glacial rebound by Chad Greene

Interpolate and plot post-glacial rebound or glacial isostatic adjustment. (pgr, gia, climate)

Plotting post-glacial rebound (PGR)

pgr_interp(lati,loni)

image thumbnail

updated 10 days ago

How to map sea level rise by Chad Greene

A simple example of how to create a map of sea level rise using publicly-available data. (mapping, sea level rise, climate)

How to make a map of sea level rise

image thumbnail

updated 14 days ago

clearempty by Chad Greene

clear all empty variables from current workspace (clear, empty)

clearempty

clearempty.m

image thumbnail

updated 16 days ago

pathdist by Chad Greene

Simply calculate distance traveled along a lat/lon path (distance, track, waypoints)

pathdist

pathdist(lat,lon,varargin)

image thumbnail

updated 20 days ago

rgbmap color maps by Chad Greene

Create color maps from actual names that people use for colors. (colormap, color, xkcd)

rgbmap

rgbmap(varargin)

image thumbnail

updated 21 days ago

disthist by Chad Greene

Simply show a histogram of distances between geographic waypoints. (distance, hist, histogram)

disthist

disthist(lat,lon,distances_or_nbins)

image thumbnail

updated 24 days ago

interpm2 by Chad Greene

Densify or interpolate along paths with approximately equal spacing in meters or kilometers. (interpm, interpolation, mapping)

interpm2

interpm2(lat,lon,maxdiff,method,units,tolerance)

image thumbnail

updated 1 month ago

RGB color values from XKCD by Chad Greene

RGB triplets for 949 colors, by how they're perceived on a computer monitor and their common names. (rgb, xkcd, color)

rgb

rgb(ColorName)

image thumbnail

updated 1 month ago

replacefartherthan by Chad Greene

Replace or delete values in a surface farther than a given distance from points. (griddata, nan, distance)

replacefartherthan

replacefartherthan.m

image thumbnail

updated 1 month ago

nsidc_download by Chad Greene

Download data from the National Snow and Ice Data Center (nsidc, ftp, tar)

nsidc_download(ftp_path,filepath)

image thumbnail

updated 1 month ago

Antarctic grounding zone structure from ICESat by Chad Greene

Download and plot ICESat-derived grounding zone structure for Antarctica. (nsidc, icesat, grounding zone)

icesat

icesat(mapvar,varargin)

icesat_grounding_zone_install.m

image thumbnail

updated 1 month 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)

C2xyz(C)

antmapinit(varargin)

asaid(mapvar,varargin)

image thumbnail

updated 2 months ago

reshape_daily by Chad Greene

Reshape daily time series between 1D and calendar-like 3D matrices. (time series, daily, climate)

reshape_daily

reshape_daily(s,t)

image thumbnail

updated 2 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 2 months ago

corrmap correlation coefficients by Chad Greene

This function returns correlation coefficients along any dimension of an N-dimensional data set. (corrcoef, correlation, cov)

corrmap

corrmap(A,y,dim,varargin)

image thumbnail

updated 2 months ago

trend by Chad Greene

Fast function for mapping trends along any dimension in 3D data. (netcdf, nc, reanalysis)

trend(A,t,dim)

image thumbnail

updated 3 months ago

rgb2hex and hex2rgb by Chad Greene

Convert colors between rgb and hex values (color, rgb, plotting)

hex2rgb(hex,range)

rgb2hex(rgb)

image thumbnail

updated 4 months ago

circle plotter by Chad Greene

Simply plot filled circles or circle outlines. (circle, plotting, fill)

circles(x,y,r,varargin)

image thumbnail

updated 4 months ago

interp1gap 1D interpolation over small x gaps by Chad Greene

Interpolate over small gaps in x, but not over large gaps in x. (interpolation, interp1)

interp1gap(x,v,xq,maxgapval,varargin)

image thumbnail

updated 4 months ago

mmax and mmin by Chad Greene

Returns maximum or minimum value of an N-D matrix (max, min, housekeeping)

mmax(A)

mmin(A)

image thumbnail

updated 5 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 5 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 6 months ago

dlim by Chad Greene

set date limits like they're x limits. (datetick, xlim)

dlim(varargin)

image thumbnail

updated 10 months ago

scalebar for maps by Chad Greene

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

scalebar(varargin)

image thumbnail

updated 10 months ago

nget by Chad Greene

Query any number of graphics object properties at once using the get command. (get)

nget(h,varargin)

image thumbnail

updated 11 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)

C2xy(C)

C2xyz(C)

image thumbnail

updated 11 months ago

Label Antarctic Features by Chad Greene

Retrieve coordinates and/or label any of the 25,394 Antarctic features identified by SCAR. (mapping, antarctica, scar)

scarlabel(featurename,varargin)

scarloc(featurename)

image thumbnail

updated 11 months ago

figtitle by Chad Greene

Create a title for a figure with multiple subplots. (title, figure, text)

figtitle(titlestring,varargin)

image thumbnail

updated 11 months 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 11 months ago

hfill and vfill by Chad Greene

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

hfill(ybounds,ColorSpec,varargin)

vfill(xbounds,ColorSpec,varargin)

image thumbnail

updated 11 months 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 12 months ago

ccc by Chad Greene

close all; clear all; clc; (clear, close, clc)

ccc.m

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)

sciencestagram(figurehandle)

image thumbnail

updated 1 year 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...)

ant_map(northern_latitude)

plot_pf

plot_saccf

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 1 year 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 1 year 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 1 year ago

Get El NiƱo Southern Oscillation Index values by Chad Greene

Get SOI (or ENSO) values as a time series from the year 1866 to present. (enso, soi, el nino)

get_soi(start_date,end_date)

image thumbnail

updated 1 year ago

Get Climate Teleconnection Indices by Chad Greene

Import Arctic, Antarctic, Pacific-North American & North American Oscillation indices from NOAA CPC. (climate, teleconnections, noaa)

get_aao

get_ao

get_nao

image thumbnail

updated 1 year ago

Butterworth Filters by Chad Greene

Highpass, lowpass, bandpass, and bandstop Butterworth frequency filters. (filtering, dsp, frequency)

[filtered_signal,filtb,filta]=bandpass_butterworth(inputs...

[filtered_signal,filtb,filta]=bandstop_butterworth(inputs...

[filtered_signal,filtb,filta]=hipass_butterworth(inputsig...

image thumbnail

updated almost 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 almost 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 almost 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 almost 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 almost 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

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 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)

Contact us