Function for reprojecting data.

SOproj(x, y = NULL, target = NULL, data, ..., source = NULL)

Arguments

x

longitude vector, or object with coordinates

y

latitude vector

target

target projection (default = stereo)

data

optional data to be included

...

arguments passed to reproj::reproj()

source

starting projection (default = longlat)

Value

Reprojects the given data object to polar projection. Works with Points, spatial, raster, SOmap, sf and sfc objects.

Examples

if (FALSE) {
 lat <- c(-70, -60,-50, -90)
 lon <- c(-50, -75, -45, -60)
 pnts <- SOproj(x = lon, y = lat)
 SOmap2(CCAMLR = TRUE)
 plot(pnts, pch = 19, col = 3, add = TRUE)
}