Learn R Programming

Rnightlights (version 0.2.4)

getCtryRasterOutputFnamePath: Get the full path to the file where the cropped VIIRS country raster is stored.

Description

Get the full path to the file where the cropped VIIRS country raster is stored. This file is created when processing the country before extracting the data. It can be used to re-process a country much faster

Usage

getCtryRasterOutputFnamePath(ctryCode, nlType, configName,
  multiTileStrategy = pkgOptions("multiTileStrategy"),
  multiTileMergeFun = pkgOptions("multiTileMergeFun"),
  removeGasFlares = pkgOptions("removeGasFlares"), nlPeriod,
  gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)

Arguments

ctryCode

the ctryCode of interest

nlType

the nlType of interest

configName

character the type 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

nlPeriod

the nlPeriod of interest

gadmVersion

The GADM version to use

gadmPolyType

The format of polygons to download from GADM

custPolyPath

The path to a custom polygon as an alternative to using GADM polygons

Value

Character full path to the cropped VIIRS country raster for a country and a given year and month

Examples

Run this code
# NOT RUN {
getCtryRasterOutputFnamePath("KEN","VIIRS.M", "201412")
# }
# NOT RUN {
#export for exploreData() shiny app
# }

Run the code above in your browser using DataLab