initializeMazamaSpatialUtils {AirSensor}R Documentation

Initialize MazamaSpatialUtils package

Description

Convenience function that wraps:

  data("SimpleCountriesEEZ", package = "MazamaSpatialUtils")
  data("SimpleTimezones", package = "MazamaSpatialUtils")
  MazamaSpatialUtils::setSpatialDataDir('~/Data/Spatial')
  MazamaSpatialUtils::loadSpatialData('NaturalEarthAdm1')

This function should be run before using pas_load(), as pas_load() uses the spatial data loaded by initializeMazamaSpatialUtils() to enhance raw synoptic data via pas_enhanceData().

If file logging is desired, these commands should be run individually with output log files specified as arguments to logger.setup() from the MazamaCoreUtils package.

Usage

initializeMazamaSpatialUtils(
  spatialDataDir = "~/Data/Spatial",
  stateCodeDataset = "NaturalEarthAdm1",
  logLevel = WARN
)

Arguments

spatialDataDir

Directory where spatial datasets are created.

stateCodeDataset

MazamaSpatialUtils dataset returning ISO 3166-2 . alpha-2 stateCodes

logLevel

Logging level used if logging has not already been initialized.


[Package AirSensor version 1.0.8 Index]