Learn R Programming

Rnightlights (version 0.2.4)

getCtryRasterOutputFname: Constructs the name of the output raster

Description

Constructs the name of the output raster

Usage

getCtryRasterOutputFname(ctryCode, nlType,
  configName = pkgOptions(paste0("configName_", nlType)),
  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 the name of country raster for a country and a given nlType and nlPeriod

Examples

Run this code
# NOT RUN {
Rnightlights:::getCtryRasterOutputFname(ctryCode = "KEN", nlType = "VIIRS.M", nlPeriod = "201412")

# }

Run the code above in your browser using DataLab