Skip to contents

Computes raster maps of expected magnetic field intensity and inclination over the map grid defined in the tag object, using the World Magnetic Model (WMM).

The field is computed at a single date, the median date of tag$magnetic, and a single altitude, derived from the median of tag$pressure with the standard barometric formula.

Usage

geomag_map_ref(tag, quiet = FALSE)

Arguments

tag

A GeoPressureR tag object with magnetic and pressure data and map metadata set via tag_set_map().

quiet

Logical. If TRUE, suppresses progress messages.

Value

A two-layer SpatRaster with layers intensity (Gauss) and inclination (degrees). Its attribute geomag_ref records the time, height (m) and WMM package version used; it is lost if the raster is saved with terra::wrap() or written to file.