ee_data_collection: Defines request for collection data

Description Usage Arguments Value Image and Image Collections in Earth Engine

Description

ee_data_image() and ee_data_collection() are used to define the requested earth enigne data for the ee_grab() function.

Usage

1
2
3
4
ee_data_collection(datasetID = "UCSB-CHG/CHIRPS/DAILY",
  spatialReducer = "mean", temporalReducer = "mean",
  timeStart = "2017-01-01", timeEnd = "2017-02-01",
  resolution = NULL, bandSelection = NULL)

Arguments

datasetID

string that specifies the dataset in Earth Engine. The dataset ID can be found in the snippet section of the dataset in the Earth Engine Data Catalog.

spatialReducer

string that specifies the spatial aggregation of the data within the polygons of the targetArea. The spatial reducer can be one of "mean", "median", "min", "max", "mode"

temporalReducer

string that specifies the temporal aggregation of the filtered image collection. The spatial reducer can be one of "mean", "median", "min", "max", "mode", "sum"

timeStart

string with the date format of yyyy-mm-dd, to filter the image collection.

timeEnd

string with the date format of yyyy-mm-dd, to filter the image collection. The date selection is inclusive for the dateStart date and exclusive for the timeEnd date. Therefore, to select a single day use the date of the day as time start and the day after as timeEnd date.

resolution

integer that controls the scale of analysis in Earth Engine. The resolution controls the resolution of the data in which the computations are performed. In Earth Engine data is ingested at multiple resolutions, in an image pyramid. When you use an image, Earth Engine chooses a level of the pyramid with the closest resolution less than or equal to the resolution specified by your resolution argument and resamples (using nearest neighbour by default) as necessary. If resolution is left to NULL, the native resolution of the data is used.

bandSelection

string or a vector of strings of bands names to select from the requested dataset. By default bandSelection is set to NULL and all bands of the dataset are used.

Value

object of class list that defines request for collection data in ee_grab().

Image and Image Collections in Earth Engine

In Earth Engine raster data is stored as an Image object. Images are composed of one or more bands and each band has its own name, data type, resolution, mask and projection. A time series or stack of Images is stored as an Image Collection. To request data from an Image use ee_data_image() to define the request. To request data from a time series of Images stored in an Image Collection use ee_data_collection() instead.


JesJehle/earthEngineGrabR documentation built on June 2, 2019, 6:56 p.m.