Package information

metR metR-package

metR: Tools for Easier Analysis of Meteorological Fields

ggplot2 extension

stats, geoms and other ggplot2 extensions

geom_arrow() geom_vector()

Arrows

geom_contour2() stat_contour2()

2d contours of a 3d surface

geom_contour_fill() stat_contour_fill()

Filled 2d contours of a 3d surface

geom_contour_tanaka()

Illuminated contours

geom_relief() geom_shadow()

Relief Shading

geom_streamline() stat_streamline()

Streamlines

geom_label_contour() geom_text_contour()

Label contours

is.cross() cross()

Cross pattern

stat_na()

Filter only NA values.

stat_subset()

Subset values

as.discretised_scale() scale_fill_discretised() scale_fill_divergent_discretised() discretised_scale()

Create discretised versions of continuous scales

scale_label_colour_continuous() scale_label_alpha_continuous() scale_label_size_continuous()

Scales for contour label aesthetics

scale_colour_divergent() scale_color_divergent() scale_fill_divergent()

Divergent colour scales

scale_x_longitude() scale_y_longitude() scale_x_latitude() scale_y_latitude() scale_x_level() scale_y_level()

Helpful scales for maps

scale_mag() scale_mag_continuous()

Scale for vector magnitudes

guide_vector()

Reference arrow for magnitude scales

reverselog_trans()

Reverse log transform

ggplot2 helpers

functions that help in plotting

MakeBreaks() AnchorBreaks()

Functions for making breaks

WrapCircular()

Wrap periodic data to any range

DivideTimeseries()

Divides long timeseries for better reading

LonLabel() LatLabel()

Label longitude and latitude

label_placer_fraction() label_placement_fraction() label_placer_n() label_placement_n() label_placer_random() label_placement_random() label_placer_all() label_placement_all() label_placer_flattest() label_placement_flattest() label_placer_minmax() label_placement_minmax()

Functions to place contour labels

sa_pressure() sa_height() sa_temperature() sa_height_trans() sa_pressure_trans() sa_height_breaks() sa_height_axis() sa_pressure_axis()

Standard atmosphere

Physics

functions related to physical processes

IdealGas() Adiabat() VirtualTemperature() MixingRatio() ClausiusClapeyron() DewPoint()

Thermodynamics

coriolis() f() coriolis.dy() f.dy()

Effects of the Earth's rotation

Derivate() Laplacian() Divergence() Vorticity()

Derivate a discrete variable using finite differences

GeostrophicWind()

Calculate geostrophic winds

WaveFlux()

Calculate wave-activity flux

EPflux()

Computes Eliassen-Palm fluxes.

Data Manipulation

get and manipulate data

ReadNetCDF() GlanceNetCDF()

Read NetCDF files.

MaskLand()

Mask

GetTopography()

Get topographic data

GetSMNData()

Get Meteorological data

EOF()

Empirical Orthogonal Function

denormalise() denormalize()

Denormalise eof matrices

ImputeEOF()

Impute missing values

Impute2D()

Impute missing values by linear or constant interpolation

Interpolate()

Bilinear interpolation

Trajectory()

Compute trajectories

FitWave() BuildWave() FilterWave() WaveEnvelope()

Fourier transform

FitLm() ResidLm() Detrend()

Fast estimates of linear regression

Helpers

other helpers

`%~%` Similar()

Extended logical operators

season() seasonally() is.full_season()

Assign seasons to months

Anomaly()

Anomalies

Percentile()

Percentiles

Mag() Angle()

Magnitude and angle of a vector

JumpBy()

Skip observations

ConvertLongitude()

Converts between longitude conventions

dlon() dlat() dx() dy()

Transform between spherical coordinates and physical coordinates

as.path()

Interpolates between locations

cut(<eof>)

Remove some principal components.

Smooth2D() smooth_dct() smooth_svd()

Smooths a 2D field

Datasets

sample datasets

geopotential

Geopotential height

temperature

Air temperature

surface

Surface height