getAVHRR: Find and download AVHRR NDVI Climate Data Record (CDR)

View source: R/getAVHRR.R

getAVHRRR Documentation

Find and download AVHRR NDVI Climate Data Record (CDR)

Description

Find and download AVHRR NDVI CDR global layers for a time period. The function returned is list of filenames that may have been downloaded.

Usage

  getAVHRR(start_date, end_date, path = "", overwrite=FALSE, update=FALSE, ...)

Arguments

start_date

character. Start date for the data requested formatted yyyy-m-d

end_date

Character. end date for the data requested formatted yyyy-m-d

overwrite

logical. If TRUE, existing files are overwritten

path

character. Path name indicating where to store the data

update

logical. If TRUE, existing records of AVHRR NDVI CDR will be updated

...

Additional arguments that can be passed to download.file)

Details

Downloads compressed global layers within the dates specified. For further processing, uncompressed ".nc4" files can be opened with the terra package.

Value

Character vector of file names pointing to the downloaded files

Examples

  
  start <- "2019-05-17" 
  end <- "2019-05-23"
  path <- tempdir()
#  ff <- getAVHRR(start, end, path)

rspatial/luna documentation built on Feb. 3, 2024, 4:40 a.m.