-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocess_ERA5.Rd
53 lines (43 loc) · 1.09 KB
/
process_ERA5.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/process_ERA5.R
\name{process_ERA5}
\alias{process_ERA5}
\title{Process ERA5 NetCDF Files}
\usage{
process_ERA5(
input,
polygon,
crop = TRUE,
mask = TRUE,
downsample = FALSE,
res = 0.1,
crs = "EPSG:7844",
combinedfilename = NULL,
units = "celsius"
)
}
\arguments{
\item{input}{Folder containing NetCDF (.nc) files.}
\item{polygon}{polygon for crop/masl}
\item{crop}{TRUE/FALSE}
\item{mask}{TRUE/FALSE}
\item{downsample}{TRUE/FALSE}
\item{res}{resolution for downsamlpling}
\item{crs}{change the CRS if needed (EPSG:4283 as default)}
\item{combinedfilename}{output file path, should be .rds}
\item{units}{Units for temperature: one of "celsius" or "kelvin". Default is "celsius".}
\item{variable}{redundant?}
}
\value{
A combined SpatRaster object in ERA5 format.
}
\description{
Function to extract and combine SST data from NetCDF files in a specified folder.
See vignette for further details.
}
\examples{
\dontrun{
folder <- "/Users/rof011/GBR-dhw/datasets/era5/"
process_ERA5(folder, units = "celsius")
}
}