
Geostrophic Wind
geostrophic_wind.Rd
This function calculates the geostrophic wind components (ug, vg) from a given geopotential field [lon, lat, lev, time] using the geostrophic wind equations.
Value
A list with two 4D arrays:
ug
: zonal geostrophic wind [lon, lat, lev, time].vg
: meridional geostrophic wind [lon, lat, lev, time].
Details
The derivatives are approximated using finite differences. Grid spacing is computed using Haversine formula.
Examples
data("ERA5_pl")
zg <- ERA5_pl$z
lon <- ERA5_pl$lon
lat <- ERA5_pl$lat
geo_wind <- geostrophic_wind(zg, lon, lat)