auto_setup_dem: Setup the DEM mosaic for a given AOI

Description Usage Arguments Details Value

View source: R/auto_setup_dem.R

Description

This function will setup a set of DEM tiles for each Landsat path/row needed to cover a given AOI. The tiles can optionally be cropped to cover only the portion of each path/row that is included in the AOI, or can cover the full scene for each path/row needed to cover the AOI.

Usage

1
2
3
auto_setup_dem(aoi, output_path, dem_extents, of = "GTiff", ext = "tif",
  n_cpus = 1, overwrite = FALSE, crop_to_aoi = FALSE, notify = print,
  verbose = FALSE)

Arguments

aoi

area of interest (AOI), as a SpatialPolygonsDataFrame, to use as as bounding box when selecting DEMs. Also used to crop and set projection of the output DEM(s) if crop_to_aoi=TRUE. Must be in a projected coordinate system.

output_path

the path to use for the output

dem_extents

a SpatialPolygonsDataFrame of the extents and filenames for a set of locally available DEM raster(s) that cover the aoi. See the get_extent_polys function for one means of generating this list. dem_extents must have a "filename" column.

of

output format to use when saving output rasters. See description of of in gdalwarp.

ext

file extension to use when saving output rasters (determines output file format). Should match file extension for output format chosen by of.

n_cpus

the number of CPUs to use for processes that can run in parallel

overwrite

whether to overwrite existing files (otherwise an error will be raised)

crop_to_aoi

whether to crop the dem to the supplied AOI, or to the Landsat path/row polygon for that particular path/row

notify

notifier to use (defaults to print function). See the notifyR package for one way of sending notifications from R. The notify function should accept a string as the only argument.

verbose

whether to print detailed status messages and timing information

Details

This function uses gdalUtils, which requires a local GDAL installation. See http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries or http://trac.osgeo.org/osgeo4w/ to download the appropriate installer for your operating system.

Value

nothing - used for the side effect of setting up DEMs


azvoleff/teamlucc documentation built on June 4, 2017, 12:08 a.m.