Learn R Programming

varmer

Varmer is an R library for merging satellite-based or model-based gridded images with ground-based observations, using a Variational Merging Approach (Ulloa et al. 2018).

Bugs / comments / questions / collaboration of any kind are very welcomed.

Installation

Installing the latest stable version from CRAN:

install.packages("VARMER")

A simple first application:

Loading required packages:

library(zoo)
library(sf)
library(raster)
library(tictoc)
library(cluster)
library(parallel)
library(ggplot2)
library(VARMER)

Loading times series and metadata of ground observations:

data(ecuador.tmax.zoo)
data(ecuador.tmax.stations.df)

Loading satellite-based/model-based datasets:

data(ecuador.tmax.wrf.out)

Running VARMER

varmer.ts(x=ecuador.tmax.zoo, x.metadata=ecuador.tmax.stations.df,
          v=ecuador.tmax.wrf.out, lat='LAT', lon='LON',
          drty.out="~/Documentos/dataset_ecuador")

Reporting bugs, requesting new features

If you find an error in some function, or want to report a typo in the documentation, or to request a new feature (and wish it be implemented :) you can do write to lenin.gcta@gmail.com.

Citation

To cite VARMER in publications use:

Ulloa, J., Samaniego, E., Campozano, L., & Ballari, D. (2018). A variational merging approach to the spatial description of environmental variables. Journal of Geophysical Research: Atmospheres, 123. https://doi.org/10.1002/2017JD027982.

Copy Link

Version

Install

install.packages('VARMER')

Monthly Downloads

41

Version

1.0.0

License

CC0

Maintainer

Leandro Robaina

Last Published

February 7th, 2021

Functions in VARMER (1.0.0)

varmer.ts

Variational merging for time series
coordinates

coordinates data
v

v data
ecuador.tmax.wrf.out

WRF (model-based) output for maximum temperature
v.raster

v.raster data
ecuador.tmax.stations.df

Spatial location of meteorological stations in Ecuador
varmer

Variational merging
var_merge

Solve the variational problem by the finite element method.
uhat.raster

uhat.raster data
idw.uhat.from.sf

IDW interpolation for varmer
fit.varmer

Training eta parameter for the varmer function
uhat

uhat data
U

U data
elements

elements data
ecuador.tmax.zoo

Ground-based observations of maximum temperature for Ecuador
img2varmer

Compare two images
mesh_3

Generates triangular finite element mesh.
plot_mesh

Visualization of the curves
pre_data

Obtain necessary data to the package.