-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmatch_ref.Rd
32 lines (28 loc) · 977 Bytes
/
match_ref.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/match_ref.R
\name{match_ref}
\alias{match_ref}
\title{match ref}
\usage{
match_ref(x, ref, missing_val = NULL, filename = NULL, overwrite = TRUE)
}
\arguments{
\item{x}{\code{SpatRaster} object to bash into shape}
\item{ref}{\code{SpatRaster} reference object}
\item{missing_val}{If \code{NULL} missing value are left as is. Otherwise any
\code{NA} or \code{NaN} values in \code{x} that are not \code{NA} in ref will be replaced by
\code{missing_val}}
\item{filename}{If not \code{NULL} output will be written to filename}
\item{overwrite}{\code{logical}. If \code{filename} not \code{NULL}, then if \code{TRUE},
\code{filename} will be overwritten.}
}
\value{
\code{SpatRaster} of \code{nlyrs(x)} trimmed to extent and resolution of \code{ref}.
}
\description{
Crop, resample, and mask \code{x} against \code{ref}, and optionally
replace any missing values.
}
\examples{
#placeholder example
}