Skip to contents

Lazy resample/reproject to a target grid. Created by align_to(). Barrier. At execution time this materialises as a gdalraster VRT warp.

Usage

WarpNode(
  id = integer(0),
  parents = integer(0),
  grid = GridSpec(),
  role = character(0),
  target_grid = GridSpec(),
  resampling = character(0),
  bands = integer(0),
  coarsen = 1L
)

Arguments

id

Integer node id (assigned by graph_add()).

parents

Integer ids of parent nodes (may be empty).

grid

Output GridSpec of this node.

role

Optional semantic role tag (e.g. "mask", set by apply_mask()). Pure metadata: never read by the planner or executors; surfaced by plan_draw() and plan_view().

target_grid

GridSpec to warp onto.

resampling

Resampling method ("nearest", "bilinear", "cubic", ...).

bands

Source bands this warp reads, overriding its parent source's band. Length 0 (the default) reads the parent's band; the planner sets it when it collapses a band stack of warps over one file into a single multi-band warp.

coarsen

Block factor set by coarsen(): the sources go by nearest neighbour onto the grid coarsen times finer than target_grid, and each target cell is the mean of the valid values of its block. 1 (the default) is an ordinary warp.

Value

A WarpNode.