prodes2raster: Match PRODES to raster.

Description Usage Arguments Value Author(s)

View source: R/prodes.R

Description

Rasterize a PRODES vector to match a reference raster resolution.

Usage

1
2
3
4
5
6
7
8
prodes2raster(
  file_pd,
  file_rt,
  raster_path = tempfile(pattern = "prodes2raster", fileext = ".tif"),
  tile,
  year_pd,
  prodes_lbl
)

Arguments

file_pd

A length-one character. Path to a PRODES map (a shapefile).

file_rt

A length-one character. Path to raster of reference (a tif).

raster_path

A length-one character. An optional file path to store the resulting raster.

tile

DEPRECATED. A length-one character. The Landsat scene id (6 numbers).

year_pd

A integer. The years of deforestation to keep in the output.

prodes_lbl

A tibble mapping the labels of PRODES from Portuguesse to English. It must contain the PRODES' labels in Portuguese (label_ld_pt, character) and english (label_pd, character), and its ID (id_pd, an integer that must have a one-to-one relationship to label_id).

Value

A raster object.

Author(s)

Alber Sanchez, alber.ipia@inpe.br


albhasan/sits.prodes documentation built on Sept. 3, 2020, 2:03 p.m.