GMT.jl Extensions

GMT.jl provides additional high-level plotting functions and data access utilities that extend GMT’s core capabilities with Julia-specific features.

Plotting Extensions

High-level plotting functions for common visualization tasks.

ablines

Creates a straight line(s) defined by Y = a + b * X.

anaglyph

Create 3D anaglyph images

append2fig

Append elements to existing figure

coastlinesproj

Project coastlines to map

colorzones

Apply color palettes to segmented data

cubeplot

3D cube plotting

earthregions

Plot or extract named geographic regions

graticules

Create map graticules

hlines

Plot horizontal reference lines

imagesc

Scaled image display.

imshow

Display the created figures.

leepacific

Lee’s Pacific projection utilities.

lelandshade

Lee’s landshading utilities.

linearfitxy

Plot data with fitted line.

logo

Plot the GMT & Julia logos.

pcolor

Pseudocolor plot with scaled colors.

piechart

Create pie charts.

plotlinefit

Plot data with linear fit.

plotyy

Dual y-axis plots.

polygonlevels

Create polygons from contour levels.

qqplot

Quantile-quantile plots.

quiver

Vector field plots with arrows

radar

Create radar/spider plots

rasterzones

Create rasterized zone maps

scatter3

3D scatter plots

trisurf

Triangulated surface plots

vband

Plot vertical bands/shaded regions

vlines

Plot vertical reference lines

worldrectangular

World in rectangular projection

worldrectcoast

World coastlines rectangular.

worldrectgrid

World graticules rectangular.

Data Processing

Functions for data smoothing, filtering, and statistical analysis.

autocor

Autocorrelation function.

autocov

Autocovariance function.

conv

Convolution.

crop

Crop grids or images.

delrows

Delete rows from dataset.

findpeaks

Find peaks in data.

flipdim

Flip array dimensions.

fliplr

Flip left-right.

flipud

Flip up-down.

gunique

Get unique elements with indices.

hampel

Hampel outlier filter.

isoutlier

Identify outliers.

kmeans

K-means clustering.

lowess

Locally weighted regression smoothing.

mad

Median absolute deviation.

nanmean

Mean ignoring NaNs

nanstd

Standard deviation ignoring NaNs

pca

Principal component analysis

polyfit

Polynomial fitting

polyval

Evaluate polynomial

rescale

Rescale data

sortslicesperm

Sort with permutation

squeeze

Remove singleton dimensions

stats

Statistical summary

whittaker

Whittaker-Henderson smoothing

xcorr

Cross-correlation

xcov

Cross-covariance

zscores

Compute z-scores

Data Conversion

Functions for format and coordinate transformations.

ISOtime2unix

ISO time to Unix time

ODE2ds

ODE solution to dataset

cart2pol

Cartesian to polar coordinates

cart2sph

Cartesian to spherical coordinates

date2doy

Date to day-of-year

df2ds

DataFrame to GMTdataset

doy2date

Day-of-year to date

ds2df

GMTdataset to DataFrame

grid2tri

Grid to triangulation

ind2bool

Indices to boolean

ind2rgb

Indexed to RGB image

mat2ds

Matrix to GMTdataset

mat2grid

Matrix to GMT grid

mat2img

Matrix to GMT image

pol2cart

Polar to Cartesian

sph2cart

Spherical to Cartesian

tern2cart

Ternary to Cartesian

xyzw2cube

Table to data cube

yeardecimal

Decimal year conversion

Data Manipulation

Functions for grid and data operations.

cubeslice

Slice data cubes

fields

Get structure fields

fileparts

Parse file paths

getbyattrib

Get data by attribute

getregion

Get data region

gridit

Grid scattered data

groupby

Group data by values

info

Get data information

isclockwise

Check polygon orientation

isnodata

Check for no-data values

makeDCWs

Make DCW polygons

meshgrid

Create coordinate arrays

mksymbol

Make custom symbols

peaks

Generate peaks function

pow

Power function

quadbounds

Quadtree bounds

quadkey

Quadtree key

randinpolygon

Random points in polygon

slicecube

Slice through cube

spatialjoin

Spatial join operations

stackgrids

Stack multiple grids

texture_img

Apply texture to image

togglemask

Toggle mask values

vector_attrib

Vector attributes

zonal_statistics

Zonal statistics (alias)

zonal_stats

Zonal statistics

Data Access

Functions for accessing geographic datasets and remote data sources.

ecmwf

Access ECMWF weather data

era5time

ERA5 time information

era5vars

ERA5 variable information

gadm

Access GADM administrative boundaries

gmtread

Read GMT data files

gmtwrite

Write GMT data files

lasread

Read LAS point cloud

laswrite

Write LAS point cloud

lazinfo

LAZ file information

lazread

Read LAZ point cloud

lazwrite

Write LAZ point cloud

listecmwfvars

List ECMWF variables

maregrams

Plot tidal mareograms

mbgetdata

Get MB-System data

mbimport

Import MB-System data

mblevitus

Levitus database access

mbsvplist

Sound velocity profiles

meteostat

Meteostat weather data

mosaic

Create image mosaics from tiles

pastplates

Tectonic plate reconstructions

remotegrid

Access remote grid datasets

sealand

Mask grid/image by land/sea

weather

Weather data and forecasts

wmsinfo

WMS service information

wmsread

Fetch Web Map Service data

wmstest

Test WMS service

Geographic Utilities

Specialized geographic and geospatial tools.

cpt4dcw

Color palette for DCW

geocoder

Geocoding utilities

geodetic2enu

Geodetic to ENU coordinates

getprovider

Get tile provider info.

inpolygon

Test points in polygon.

inwhichpolygon

Find containing polygon.

mapsize2region

Map size to region.

orbits

Satellite orbit calculations.

regiongeog

Geographic region utilities.

terramar

Land/sea utilities.

vecangles

Vector angle calculations.

whereami

Location information.

Geophysical

Specialized functions for geophysical and Earth science applications.

okada

Okada deformation model.

parkergrav

Calculate gravity anomalies.

parkermag

Calculate magnetic anomalies.

seismicity

Plot earthquake data.

stereonet

Stereonets for structural geology.

streamlines

Compute and plot streamlines.

Table Operations

DataFrame-style operations for GMT datasets.

Gantijoin

Anti join operation

Gcrossjoin

Cross join operation

Ginnerjoin

Inner join operation

Gleftjoin

Left join operation

Gouterjoin

Outer join operation

Grightjoin

Right join operation

Gsemijoin

Semi join operation

Miscellaneous

Other utility functions.

bezier

Bezier curve generation

circfit

Fit circle to points

linspace

Linearly spaced vector

logspace

Logarithmically spaced vector

magic

Magic square generation

resetGMT

Reset GMT session

theme

Set plot theme

tic

Start timer

toc

Stop timer

uniqueind

Unique with indices

upGMT

Update GMT

vizpdf

Visualize PDF