Learn R Programming

Rnightlights (version 0.2.4)

existsCtryNlData: Check if VIIRS nightlight stats exist locally

Description

Check if VIIRS nightlight data for the country exists in the country nightlight data file. First checks if the country nightlight data file exists.

Usage

existsCtryNlData(ctryCode = NULL, admLevel, nlTypes, configNames,
  multiTileStrategy = pkgOptions("multiTileStrategy"),
  multiTileMergeFun = pkgOptions("multiTileMergeFun"),
  removeGasFlares = pkgOptions("removeGasFlares"), nlPeriods, nlStats,
  gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)

Arguments

ctryCode

character The ISO3 code of the country

admLevel

character string The country admin level of interest

nlTypes

character The nlTypes

configNames

character the types of raster being processed

multiTileStrategy

character How to handle multiple tiles per nlPeriod

multiTileMergeFun

character The function to use to merge tiles

removeGasFlares

logical Whether to perform gas flare removal pre-processing

nlPeriods

character The nlPeriods

nlStats

character The nlStats to check for

gadmVersion

The GADM version to use

gadmPolyType

The format of polygons to download from GADM

custPolyPath

Alternative to GADM. A path to a custom shapefile zip

Value

TRUE/FALSE

Examples

Run this code
# NOT RUN {
Rnightlights:::existsCtryNlData(ctryCode = "KEN", admLevel = "KEN_adm0", 
    nlTypes = "VIIRS.M", configNames = "stable_lights", nlPeriods = "201401", nlStats = "sum")

# }

Run the code above in your browser using DataLab