Learn R Programming

gfcanalysis

Overview

The gfcanalysis package facilitates analyses of forest change using the Global Forest Change dataset released by Hansen et al. 2013, and subsequent versions of that data. The package was originally designed to support the work of the Tropical Ecology Assessment & Monitoring (TEAM) Network.

Package Installation

Release Version

To install the release version of gfcanalysis in R, just run:

install.packages('gfcanalysis')

Development Version

The easiest way to install the development version of the gfcanalysis package is using the devtools package. After installing devtools, type:

install_github('azvoleff/gfcanalysis')

Usage

There are two example scripts demonstrating how to use the gfcanalysis package:

  • For those new to R, see the

install_gfcanalysis.R script. This script provides guidance on how to download and install the (development version) of the package in R.

  • For an example of how to run the package to calculate forest

change statistics for a given area of interest (AOI), see the examples in analyze_gfc.R.

Author Contact Information

Matt Cooper (current author and maintainer)
PhD Student
Department of Geographical Sciences
University of Maryland

Alex Zvoleff (original author)
Senior Director, Resilience Science
Moore Center for Science Conservation International
2011 Crystal Dr. Suite 600
Arlington, VA 22202
USA

References

Hansen, M. C., P. V. Potapov, R. Moore, M. Hancher, S. A. Turubanova, A. Tyukavina, D. Thau, S. V. Stehman, S. J. Goetz, T. R. Loveland, A. Kommareddy, A. Egorov, L. Chini, C. O. Justice, and J. R. G. Townshend. 2013. High-Resolution Global Maps of 21st-Century Forest Cover Change. Science 342, (15 November): 850--853. Data available on-line from: http://earthenginepartners.appspot.com/science-2013-global-forest.

Copy Link

Version

Install

install.packages('gfcanalysis')

Monthly Downloads

277

Version

1.8.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Matthew Cooper

Last Published

October 11th, 2023

Functions in gfcanalysis (1.8.0)

scale_by_pixel_area

Scales a raster by the area of each pixel in meters
scale_toar

Scale the first or last top of atmosphere (TOA) reflectance images
test_poly

Polygon outlining TEAM site in Caxiuanã, Brazil
threshold_gfc

Threshold the GFC product
calc_gfc_tiles

Calculate the GFC product tiles needed for a given AOI
gfc_tiles

Grid of tiles used for the GFC product
calc_pixel_areas

Calculates the pixel area for each line of a raster
gfc_stats

Produce a table of forest cover change statistics for a given AOI
plot_gfc

Plot forest change (relative to 2000) for a given year
annual_stack

Generate an annual stack of forest change from GFC product
animate_annual

Plot an animation of forest change within a given area of interest (AOI)
check_aoi

Check if aoi is an sf or sp type object If sp, convert to sf and return
download_tiles

Download a set of GFC tiles
extract_gfc

Extracts GFC data for a given AOI
utm_zone

Given a spatial object, calculate the UTM zone of the centroid