powered by
Check if VIIRS nightlight data for the country exists in the country nightlight data file. First checks if the country nightlight data file exists.
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)
character The ISO3 code of the country
character string The country admin level of interest
character The nlTypes
character the types of raster being processed
character How to handle multiple tiles per nlPeriod
character The function to use to merge tiles
logical Whether to perform gas flare removal pre-processing
character The nlPeriods
character The nlStats to check for
The GADM version to use
The format of polygons to download from GADM
Alternative to GADM. A path to a custom shapefile zip
TRUE/FALSE
# 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