mosaicMODIS: Mosaic/Warp Raw MODIS Tiles

View source: R/modis_utils.R

mosaicMODISR Documentation

Mosaic/Warp Raw MODIS Tiles

Description

Mosaics all MODIS HDF files for a given date to a new file with a flexible extent (te), resolution (tr), CRS (t_srs). If GDAL options are left NULL, the GDAL defaults are used.

Usage

mosaicMODIS(
  dir = geo_path(),
  product,
  date = NULL,
  pattern = NULL,
  grid = NULL,
  r = "near",
  overwrite = FALSE,
  scale_factor = 1,
  range = NULL,
  cog = TRUE
)

Arguments

dir

the directory to cache data. Default is geo_path()

product

the MODIS product to search for

date

the date of the mosaic to build passed as a vector of length 1 (single date), or 2 (range of dates)

pattern

the HDF file pattern to extract (see getSubsets())

grid

a grid abstraction build with make_grid()

r

GDAL resampling method

overwrite

should the files be overwriten?

scale_factor

product scale factor

range

valid data range

cog

should a COG directory be built?

See Also

Other modis: .modis_dir(), day8_to_month(), downloadMODIS()


mikejohnson51/geogrids documentation built on June 16, 2022, 12:36 a.m.