mosaic_ensemble_pred_tiles: Mosaic soil moisture prediction

View source: R/AgroSoil_generic_functions.R

mosaic_ensemble_pred_tilesR Documentation

Mosaic soil moisture prediction

Description

Mosaic soil moisture predictions from the individual spatial tiles for all overlapping regions

Usage

mosaic_ensemble_pred_tiles(
  i,
  in_path,
  targ_var,
  r = "bilinear",
  ot,
  dstnodata,
  out_path,
  te,
  month_,
  month.lst_,
  pred.year_,
  pixel,
  days_,
  stdps = c(5, 15, 30, 60, 100),
  DDepth,
  Spatial_res,
  Temporal_res,
  shp,
  era5_depth = FALSE
)

Arguments

i

Character. Single month of the targetted soil moisture prediction year.Default value is the months of the in situ soil moisture meansurement. Values are abbreviated month name. E.g. "Jan", "Mar", "Oct".

in_path

Directory holding the predictions (saved as .tif files)

targ_var

Predicted target variable

r

Spatial resampling algorithm. Default value is "bilinear". Value options are "cubicspline", "near". See GDAL documentation for further details.

ot

Raster data type of the destination raster file. See GDAL documentation for other options

dstnodata

Impute for missing or NO_DATA value. Default value is -32768

out_path

Directory to hold final mosiaced predictions

te

Spatial extent of the destination raster file. See GDAL documentation for other options

month_

Character. Single month of the targetted soil moisture prediction year.Default value is the months of the in situ soil moisture meansurement. Values are abbreviated month name. E.g. "Jan", "Mar", "Oct".

month.lst_

Vector or a list. All months of the targetted soil moisture prediction year.

pred.year_

Numeric. Single soil moisture prediction year

pixel

Expected spatial pixel size

days_

Numeric. Days in the respective month of the targetted soil moisture prediction year. Default values are all days in the respective month of the year

stdps

Vector. Numeric values of standard soil depths at which predictions are required. Default values are c(0,5,15,30,60,100,200)

DDepth

TRUE/FALSE. Whether to predict for top soils (FALSE) or for specific standard soil depths (TRUE).

Spatial_res

Expected spatial resolution of destination raster file.

Examples


out <- mosaic_ensemble_pred_tiles(i, in_path, targ_var, r, ot, dstnodata, out_path, te, month_, month.lst_, pred.year_, pixel, days_, stdps, DDepth, Spatial_res)

kanj241/agrosoil documentation built on March 25, 2022, 12:22 a.m.