Learn R Programming

VARMER (version 1.0.0)

img2varmer: Compare two images

Description

The function compare two raster or bricks with different z values(uhat and v images) It check if the images has the same extension, resolution, coordinate reference system, columns and rows.

Usage

img2varmer(uhat.img, v.img)

Arguments

uhat.img

The interpolated image as a raster or brick.

v.img

The satellite image as a raster or brick.

Value

If the images have the same extension, resolution, coordinate reference system, columns and rows.

A list containing two data frames (uhat and v) in the necessary format to varmer function (x,y,layer1,layer2).

If the images has not the same values an error message is returned.

Examples

Run this code
# NOT RUN {
library(raster)
data(uhat_raster,"VARMER")
force(uhat.raster)
data(v_raster,"VARMER")
force(v.raster)
img2varmer(uhat.raster,v.raster)
# }

Run the code above in your browser using DataLab