download.LandTrendr.AGB

download.LandTrendr.AGB(
  outdir,
  target_dataset = "biomass",
  product_dates = NULL,
  product_version = "v1",
  con = NULL,
  run_parallel = TRUE,
  ncores = NULL,
  overwrite = FALSE
)

Arguments

outdir

Where to place output

target_dataset

Which LandTrendr dataset to download? Default = "biomass"

product_dates

What data product dates to download

product_version

Optional. LandTrend AGB is provided with two versions, v0 and v1 (latest version)

con

Optional database connection. If specified then the code will check to see

run_parallel

Logical. Download and extract files in parallel?

ncores

Optional. If run_parallel=TRUE how many cores to use? If left as NULL will select max number -1

overwrite

Logical. Overwrite existing files and replace with new versions

Value

data.frame summarize the results of the function call

Author

Shawn Serbin

Examples

if (FALSE) { # \dontrun{
outdir <- "~/scratch/abg_data/"
product_dates <- c(1990, 1991, 1995)  # using discontinous, or specific years
product_dates2 <- seq(1992, 1995, 1)  # using a date sequence for selection of years
product_version = "v1"

results <- PEcAn.data.remote::download.LandTrendr.AGB(outdir=outdir, 
           product_dates = product_dates, 
           product_version = product_version)

results <- PEcAn.data.remote::download.LandTrendr.AGB(outdir=outdir, 
           product_dates = product_dates2, 
           product_version = product_version)
} # }