coordinate_mod function

Coordinate Correction

Coordinate Correction

Corrects the longitudes or latitudes to value between -180.0 and 180.0 or -90 and 90 degree

longitude_modulo(x) latitude_modulo(x)

Arguments

  • x: Longitude(s) or latitude(s) in degrees

Returns

numeric

Examples

longitude_modulo(-361 + 5 * 360) latitude_modulo(-91 + 5 * 180)
  • Maintainer: Tobias Stephan
  • License: GPL (>= 3)
  • Last published: 2025-03-01