GetEvi2PointTs: Use Microsoft Planetary Computer with STAC API to get Landsat...

View source: R/dat_dl_point_ts.R

GetEvi2PointTsR Documentation

Use Microsoft Planetary Computer with STAC API to get Landsat EVI2 time series for any point location specified by longitude and latitude.

Description

Use Microsoft Planetary Computer with STAC API to get Landsat EVI2 time series for any point location specified by longitude and latitude.

Usage

GetEvi2PointTs(pt_coords, focalDates = "1984-01-01/2022-12-31", ncores = 1)

Arguments

pt_coords

Point location. Longitude and latitude.

focalDates

Temporal period.

ncores

Number of cores used to parallel the process.

Value

A data.table containing EVI2 time series along with QA values.

Examples

## Not run: 
  pt_coords <- data.table::data.table(x = -71.700975, y = 43.945733)
  focalDates <- "1984-01-01/1989-06-04"
  ncores <- 5
  val_dt <- GetEvi2PointTs(pt_coords, ncore = ncores)
  val_dt <- data.table::setorder(val_dt, date)
  plot(val_dt[qa == 0, .(date, evi2)], pch = 16, type = "b")

## End(Not run)

MrJGao/Bayesian_LSP documentation built on Feb. 11, 2025, 9:36 a.m.