mosaic_daymet | R Documentation |
Mosaic daymet tiles by year and day
mosaic_daymet(
dir,
days = 1:365,
out_dir = ".",
format = c("raster", "GTiff"),
crop = NULL,
reproject = NULL,
method = "ngb",
verbose = TRUE
)
dir |
|
days |
|
out_dir |
|
format |
|
crop |
|
reproject |
|
method |
|
verbose |
|
This function takes the tiles downloaded by
get_daymet_swe()
and mosaics them together by year and day.
Each Daymet NetCDF file has 365 bands corresponding to days of the year. This
function finds all the *.nc
files for each year in the folder, then
determines which bands (days) to load with the argument days
, so
processing is sped up noticeably if you only specify the days you need. The
output is then saved in a single-band GeoTIFF labeled with yyyy_day in the
filename.
A note on Daymet days. During leap years, there are still only 365 bands in the raster. December 31st is omitted during leap years.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.