initializeMazamaSpatialUtils: Initialize MazamaSpatialUtils package

Description Usage Arguments

View source: R/initializeMazamaSpatialUtils.R

Description

Convenience function that wraps:

1
2
3
4
  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

1
2
3
4
5
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.


AirSensor documentation built on March 13, 2021, 1:07 a.m.