getLandsat8UTM: Download Landsat data using the SkyWatch API and save bands...

Description Usage Arguments Value Author(s)

Description

Download satellite imagery and climate/atmospheric datasets using the SkyWatch API based on a query output object obtained from the querySW function. The API returns data with coordinate reference CRS=" +proj=utm +zone=50 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0". This function returns either the entire scene if region is not specified, or part of the scene cropped to the specified region with the same coordinate reference. The downloaded data are returned as a raster stack Object.

Usage

1
2
3
getLandsat8UTM(res, datetime, region = NULL, download = T, dir = getwd(),
  api_key, bands = c("Blue", "Green", "Red", "Near-Infrared",
  "Short-Wave-Infrared-1", "Short-Wave-Infrared-2"))

Arguments

res

Query response returned by SkyWatchr function 'querySW'.

datetime

Time of imafe data as specified in res.

region

raster object specifying the extent to crop.

download

If T, data are downloaded. Specify download=F if the data have already been downloaded.

dir

Path of directory for downloaded data.

bands

Vector of bands to download.

Value

Returns a raster stack.

Author(s)

Fiona Evans


fionahevans/agric documentation built on May 30, 2019, 12:46 p.m.