get_npp: Get Net Annual NPP (CONUS)

View source: R/get.R

get_nppR Documentation

Get Net Annual NPP (CONUS)

Description

This function gets Net Primary Productivity products for selected time frames. Cloud masking will be at 50% if TRUE; however, for 'ld_NPP' 255 will be masked out.

Usage

get_npp(
  aoi,
  method = "ld_NPP",
  param = NULL,
  stat = "median",
  cloud_mask = TRUE,
  startDate = "1986-01-01",
  endDate = "2019-01-01",
  mask = FALSE,
  m.low = NULL,
  m.high = NULL,
  c.low = 1,
  c.high = 12
)

Arguments

aoi

A sf object indicating the extent of the geom.

method

A character indicating what method to use, e.g. 'ld_NPP', 'modis_NPP', 'terra', 'aqua'.

param

A character indicating what band to visualize, e.g. 'annualNPP', 'Npp', etc.

stat

A character indicating what to reduce the imageCollection by, e.g. 'median' (default), 'mean', 'max', 'min', 'sum', 'stdDev', 'first'.

cloud_mask

logical whether to mask out certain cloud artifacts. TRUE (default).

startDate

character format date, e.g. "2018-10-23"

endDate

character format date, e.g. "2018-10-23"

mask

logical whether to mask out certain ranges

m.low

numeric low value for mask, e.g. greater than 'm.low'

m.high

numeric high value for mask, e.g. less than 'm.high'

c.low

numeric lower month value for calendar range

c.high

numeric higher month value for calendar range

Details

The methods currently available:

  • ld_NPP: UMT/NTSG/v2/LANDSAT/NPP; 1986-01-01 - 2019-01-01.

  • modis_NPP: UMT/NTSG/v2/MODIS/NPP; 2001-01-01 - 2019-01-01.

  • terra: MODIS/006/MOD17A3HGF; 2001-01-01 - 2019-01-01.

  • aqua: MODIS/006/MYD17A3HGF; 2002-01-01 - 2019-01-01.

Value

A list of Earth Engine Objects and arguments.

Examples

## Not run: 
# Load Libraries

library(rgee)
ee_Initialize()
library(exploreRGEE)

# Bring in data
huc <- exploreRGEE::huc

npp <- get_npp(huc, method = 'ld_NPP', param = 'annualNPP', startDate = '2014-01-01',
                  endDate = '2018-12-31')



## End(Not run)

joshualerickson/exploreRGEE documentation built on May 9, 2022, 10:33 p.m.