Learn R Programming

Rnightlights (version 0.2.3)

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, nlPeriod,
  gadmVersion = pkgOptions("gadmVersion"), custPolyPath = NULL)

Arguments

ctryCode

the ctryCode of interest

nlType

the nlType of interest

nlPeriod

the nlPeriod of interest

gadmVersion

The GADM version to use

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