landsat_scene: Create a RasterStack with attached Band Name Information

Description Usage Arguments Value See Also

View source: R/landsat_scene.R

Description

This function creates a RasterStack (see stack) with band name information attached. This information will be ignored by most functions in the raster package, but is propogated by landsat_crop, landsat_project, landsat_mask, and landsat_overlay. The primary reason to use keep the band name information with the RasterStack/RasterBrick object is for use with landsat_overlay, which allows functions to be written in terms of band numbers. This function does not load any raster files into memory.

Usage

1
2
3
4
5
6
7
landsat_scene(B1 = NULL, B2 = NULL, B3 = NULL, B4 = NULL, B5 = NULL,
  B6 = NULL, B7 = NULL, B8 = NULL, B9 = NULL, B10 = NULL,
  B11 = NULL, BQA = NULL, attrs = list())

as.landsat_scene(x, band_names, attrs = list())

is.landsat_scene(x)

Arguments

B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, BQA

RasterLayer or filenames of raster image files to be passed to raster.

attrs

A list that contains arbitrary meta information to keep with the landsat_scene object.

x

A RasterBrick or RasterStack object

band_names

The band names associated with the RasterBrick or Raster Stack object.

Value

A RasterStack object with band names attached as attributes.

See Also

landsat_load_scenes


paleolimbot/landsatutils documentation built on May 24, 2019, 6:14 a.m.