Learn R Programming

Rnightlights (version 0.1.2)

listCtryNlRasters: List available cropped country rasters

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

listCtryNlRasters(ctryCodes = NULL, nlPeriods = NULL, nlTypes = NULL,
  source = "local")

Arguments

ctryCodes

A character vector of ctryCodes to filter by

nlPeriods

A character vector of nlPeriods to filter by

nlTypes

A character vector of nlTypes to filter by

source

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

Value

a list of existing cropped rasters

Examples

Run this code
# NOT RUN {
#list all rasters
listCtryNlRasters()

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

#list all VIIRS rasters available for ECU
listCtryNlData(ctryCodes = "ECU", nlTypes = "VIIRS")

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

# }

Run the code above in your browser using DataLab