getNlTileTifLclNamePath: Constructs the full path used to save/access the downloaded...

Description Usage Arguments Value Examples

View source: R/getnlfilename.R

Description

Constructs the full path used to save/access the downloaded tile .tgz file

Usage

1
2
3
4
5
6
7
getNlTileTifLclNamePath(
  nlType,
  configName = pkgOptions(paste0("configName_", nlType)),
  extension,
  nlPeriod,
  tileNum
)

Arguments

nlType

character string the nlType

configName

character the config shortname of raster being processed

extension

character the extension of raster being processed

nlPeriod

the nlPeriod in which the tile was created

tileNum

the index of the tile as given in nlTileIndex

Value

a character string filename of the compressed .tgz VIIRS tile

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
Rnightlights:::getNlTileZipLclNamePath("OLS.Y", "2012", 1)
 #returns "/dataPath/OLS.Y_2012_00N180W.tgz"
 
## End(Not run)

## Not run: 
Rnightlights:::getNlTileZipLclNamePath("VIIRS.M", "201412", 1)
 #returns "/dataPath/VIIRS.M_201412_75N180W.tgz"
 
## End(Not run)

chrisvwn/Rnightlights documentation built on Sept. 7, 2021, 1:44 a.m.