RDW: Radial Distance Weighting interpolation

Description Usage Arguments Value Author(s) Examples

View source: R/RDW.R

Description

Apply the Radial Distance Weighting interpolation method on the irregular points of meteorological observations to a regular grid.

Usage

1
2
RDW(xy, z, xrange, yrange, res = 0.5, n.station = 5, p = 1,
  r = 100)

Arguments

xy

A matrix (N,2) with longitude and latitude of points of data observed

z

A vector (N) with the values observeds in the points

xrange

A vector with extremes longitudes of grid eg: c(-45,-35)

yrange

A vector with extremes latitudes of grid. eg: c(-1,-5)

res

The resolution of grid in degree

n.station

Number of stations used per point for interpolation. The default is 8.

p

Power parameter. The default is 1.

r

radius (in degree) for interpolation. The default ins 100

Value

A data.frame with longitude, latitude and interpoled points

Author(s)

Rodrigo Lins R. Jr., Fabricio Daniel S. S.

Examples

1
2
3
4
5
6
7
8
9
data(TempBrazil) # Temperature for some poins of Brazil

LonLat=TempBrazil[,1:2] #Data.frame with Longtude and Latitude
Temp=TempBrazil[,3] # Vector with observations in points

LonInterval=c(-78,-34.10)  # Coordinates of extremes poins of longitude to grid
LatInterval=c(-36,5)  # Coordinates of extremes poins of latitude to grid

Interpoled=RDW(xy=LonLat,z=Temp,xrange = LonInterval,yrange = LatInterval)

rrodrigojrr/ADW documentation built on Sept. 4, 2020, 8:12 a.m.