Learn R Programming

malariaAtlas (version 1.6.3)

download_rst: Download rasters from the MAP geoserver to a specifed location. If file already exists it will read it instead.

Description

Download rasters from the MAP geoserver to a specifed location. If file already exists it will read it instead.

Usage

download_rst(dataset_id, extent, year, file_name, file_path)

Value

SpatRaster

Arguments

dataset_id

ID for dataset on MAP geoserver

extent

desired raster extent

year

desired year to download

file_name

file name (excluding extension) to save raster to

file_path

path to save raster to