interpEarth: Interpolates spatial locations in the globe

Description Usage Arguments Details Value

View source: R/interpEarth.R

Description

Interpolates spatial locations from irregular points into a grid in the globe by use of interp package FOSS implementation of akima's interpolation

Usage

1
2
interpEarth(LON, LAT, z, xo, yo, output = 'grid', retnum = TRUE,
patchwin = 90)

Arguments

LON

vector of input longitudes in [-180,360]

LAT

vector of input latitudes in [-90,90]

z

data values

xo

vector of gridded output longitudes

yo

vector of gridded output latitudes

output

CHARACTER, either 'grid' or 'points'

retnum

FALSE for output as akima's matrix. TRUE for gmeta6 compatible vector. That is, a numeric vector representing gridded values starting by the upper left corner, and advancing by rows first.

patchwin

REAL, interpolation in this function is not on the sphere, but works on the globe by recycling longitude bands at both sides. This arguments controls the width of the patchs at both sides.

Details

interpEarth stacks longitudes bands in input data as approximate continuous longitudinal domain

Value

An akima's compatible matrix or a gmeta6 compatible vector


garciapintado/rDAF documentation built on May 25, 2019, 7:26 p.m.