Learn R Programming

VARMER (version 1.0.0)

var_merge: Solve the variational problem by the finite element method.

Description

It takes as input the coordinates of the nodes (variable coordinates defined in the mesh_3 function). The table of elements (variable elements defined in the mesh_3 function). The fields uhat and v, and the factor eta_0

Note that columns of uhat and v are arranged as follows:

date1 date2 date3

And performs the variational merging technique to uhat and v using the finite.

uhat and v have to be introduced like in the example, only with data

Usage

var_merge(coordinates, elements, uhat, v, eta_0)

Arguments

coordinates

A data frame with Node definitions in relative coordinates.

elements

A data frame containing element definitions and nodes should be ordered counterclockwise.

uhat

A matrix containing values from the interpolated image with x y and data and the next column structure

x y date1 date2 date3

v

A matrix containing values from the satellite/model based image.

The values of uhat and v should correspond to the same pixels in the coordinates matrix.

eta_0

A scalar representing length scale constant.

Value

A data frame representing resulting images in relative coordinates.

Examples

Run this code
# NOT RUN {
data(uhat,"VARMER")
invisible(force(uhat))
data(v,"VARMER")
invisible(force(v))
data(coordinates,"VARMER")
invisible(force(coordinates))
data(elements,"VARMER")
invisible(force(elements))
eta_0=0.5
U=var_merge(coordinates, elements, uhat[,3:ncol(uhat)], v[,3:ncol(v)], eta_0)
# }

Run the code above in your browser using DataLab