modis_load: Load Downloaded MODIS Data

modis_loadR Documentation

Load Downloaded MODIS Data

Description

Function to load downloaded MODIS MCD43A4 band 7 (see modis_download()). This function simply wraps the command raster(filepath, band = 7).

Usage

modis_load(filepath = NULL)

Arguments

filepath

character. Filepath pointing to the downloaded modis file

Value

RasterLayer containing only MODIS MCD43A4 band 7

Examples

## Not run: 
# Download files for two dates
files <- modis_download(
    dates     = c("2020-01-01", "2020-01-01")
  , outdir    = getwd()
  , tmpdir    = tempdir()
  , username  = "username"
  , password  = "password"
  , overwrite = F
)

# Load one of them and show it
modis <- modis_load(files[1])
show(modis)

## End(Not run)

DavidDHofmann/floodmapr documentation built on June 15, 2025, 12:11 a.m.