Crop, resample, and mask x
against ref
, and optionally
replace any missing values.
Arguments
- x
SpatRaster
object to bash into shape- ref
SpatRaster
reference object- missing_val
If
NULL
missing value are left as is. Otherwise anyNA
orNaN
values inx
that are notNA
in ref will be replaced bymissing_val
- filename
If not
NULL
output will be written to filename- overwrite
logical
. Iffilename
notNULL
, then ifTRUE
,filename
will be overwritten.