getCtryTileList: Returns a list of VIIRS nightlight tiles that a country or...

Description Usage Arguments Value Examples

View source: R/tiles.R

Description

Given a list of countries, this function will provide alist of VIIRS nightlight tiles that intersect with them. This helps in processing multiple countries by determining which nightlight tiles are required for processing by allowing the download of all required tiles before processing. Note all VIIRS_* nlTypes have the same nlTiles.

Usage

1
getCtryTileList(ctryCodes, nlType, omitCountries = "none")

Arguments

ctryCodes

character vector of country codes to process

nlType

character string The nlType of interest

omitCountries

countries to exclude from processing. This is helpful when the number of countries to exclude is smaller than the number to process e.g. when one wants to process all countries and exclude countries that take long to process i.e. omitCountries = "long"

Value

TRUE/FALSE

Examples

1
2
3
4
5
6
7
Rnightlights:::getCtryTileList(ctryCodes=c("BDI", "KEN", "RWA", "TZA", "UGA"),
    nlType="VIIRS.M", omitCountries="none")

#only 1 tile for OLS
Rnightlights:::getCtryTileList(ctryCodes=c("BDI", "KEN", "RWA", "TZA", "UGA"),
    nlType="OLS.Y", omitCountries="none")
    #returns "DUMMY"

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