listCtryNlData: List available data

Description Usage Arguments Value Examples

View source: R/ctrynldata.R

Description

List available data. If source is "local" it lists data cached locally. If source is remote lists available data on the remote repository.

Usage

1
2
3
4
listCtryNlData(ctryCodes = NULL, admLevels = NULL, nlTypes = NULL,
  configNames = NULL, nlPeriods = NULL, polySrcs = NULL,
  polyVers = NULL, polyTypes = NULL, nlStats = NULL,
  source = "local")

Arguments

ctryCodes

character vector of ctryCodes to filter by

admLevels

A character vector of admLevels to filter by

nlTypes

A character vector of nlTypes to filter by

configNames

character the type of rasters to filter by

nlPeriods

A character vector of nlPeriods to filter by

polySrcs

The source of polygons e.g. GADM or CUST to filter by

polyVers

The version of the polygon source to filter by

polyTypes

The format of polygons to download from GADM

nlStats

The stats to filter by

source

Character string. Whether to check data availability "local" or "remote" Not in use.

Value

a list of countries and the periods and stats for each

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#list all data
listCtryNlData()

#list all data available for KEN
listCtryNlData(ctryCodes = "KEN")

#list all VIIRS.* data available for ECU
listCtryNlData(ctryCodes = "ECU", nlTypes = "VIIRS")

#list available OLS.Y data for KEN and RWA in 2012 & 2013
listCtryNlData(ctryCodes = c("KEN","RWA"), nlPeriods = c("2012", "2013"), nlTypes = "OLS.Y")

Rnightlights documentation built on Aug. 29, 2019, 5:02 p.m.