existsCtryNlData: Check if VIIRS nightlight stats exist locally

Description Usage Arguments Value Examples

View source: R/ctrynldata.R

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

1
2
3
4
5
6
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

1
2
Rnightlights:::existsCtryNlData(ctryCode = "KEN", admLevel = "KEN_adm0", 
    nlTypes = "VIIRS.M", configNames = "stable_lights", nlPeriods = "201401", nlStats = "sum")

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