
Build a warped VRT of a source onto an exact target grid.
gdal_warp_vrt.RdDelegates every pixel of cross-CRS math to the GDAL warper:
-te/-ts pin the output grid exactly to target_grid.
Float targets without a source nodata get -dstnodata nan so area
outside the source footprint reads as NaN, not 0.
Usage
gdal_warp_vrt(src_path, band, target_grid, resampling, src_nodata = numeric(0))Value
Path to the VRT file (in tempdir()).