img2varmer: Compare two images

Description Usage Arguments Value Examples

View source: R/varmer.R

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

1
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

1
2
3
4
5
6
library(raster)
data(uhat_raster,"VARMER")
force(uhat.raster)
data(v_raster,"VARMER")
force(v.raster)
img2varmer(uhat.raster,v.raster)

VARMER documentation built on Feb. 8, 2021, 1:07 a.m.