listNlTiles: List locally cached tiles

Description Usage Arguments Value Examples

View source: R/ctrynldata.R

Description

List the tiles which have been downloaded previously and are currently cached in the local tiles folder

Usage

1
2
3
4
5
6
7
8
listNlTiles(
  nlTypes = NULL,
  configNames = NULL,
  extensions = NULL,
  nlPeriods = NULL,
  tileName = NULL,
  source = "local"
)

Arguments

nlTypes

A character vector of nlTypes to filter by

configNames

character the config shortnames of rasters to filter by

extensions

character the extension of rasters to filter by

nlPeriods

A character vector of nlPeriods to filter by

tileName

Character vector tileNames to filter by

source

Character string. Whether to check data availability. "local" or "remote". Default is "local".

Value

a list of locally cached nlTiles or NULL

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#list all tiles
listNlTiles()

#list all VIIRS tiles
listNlTiles(nlTypes = "VIIRS")

#list all VIIRS tiles available in the years 2014-2015. Note VIIRS data
#starts in 201401
listNlTiles(nlTypes = "VIIRS.M", nlPeriods = nlRange("201401", "201512"))

#filter data
listNlTiles(nlTypes = "OLS.Y", nlPeriods = c("2012", "2013"))

chrisvwn/Rnightlights documentation built on Sept. 7, 2021, 1:44 a.m.