metis.prepGrid: metis.prepGrid

Description Usage Arguments Value

View source: R/metis.prepGrid.R

Description

This function prepares gridded data for use with other metis modules.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
metis.prepGrid(
  demeterFolders = NULL,
  demeterScenarios = NULL,
  demeterTimesteps = seq(from = 2005, to = 2100, by = 5),
  demeterUnits = NULL,
  tethysFolders = NULL,
  tethysScenarios = NULL,
  tethysUnits = NULL,
  tethysFiles = c("wddom", "wdelec", "wdirr", "wdliv", "wdmfg", "wdmin", "wdnonag",
    "wdtotal"),
  xanthosFiles = NULL,
  xanthosScenarios = NULL,
  xanthosScenarioAssign = NULL,
  xanthosCoordinatesPath = NULL,
  xanthosGridAreaHecsPath = NULL,
  tethysFilesScarcity = NULL,
  xanthosFilesScarcity = NULL,
  spanLowess = 0.25,
  popFolder = NULL,
  popFiles = NULL,
  biaFolder = NULL,
  biaFiles = NULL,
  popUnits = NULL,
  dirOutputs = paste(getwd(), "/outputs", sep = ""),
  folderName = NULL,
  saveFormat = "rds",
  filterYears = NULL
)

Arguments

demeterFolders

Full path to demeter outputs

demeterScenarios

Name of demeter scenario

demeterTimesteps

Default is seq(from=2005,to=2100,by=5)

demeterUnits

No Default

tethysFolders

Folder for tethys results

tethysScenarios

Scenario name for tethys run

tethysUnits

No Default

tethysFiles

Default =c("wddom","wdelec","wdirr","wdliv","wdmfg","wdmin","wdnonag","wdtotal"),

xanthosFiles

Xanthos Files to Read

xanthosScenarios

Default=NULL,

xanthosScenarioAssign

Default NULL. Scenario name if testing single scenario.

xanthosCoordinatesPath

paste(getwd(),"/dataFiles/grids/xanthosCoords/coordinates.csv",sep="")

xanthosGridAreaHecsPath

=paste(getwd(),"/dataFiles/grids/xanthosRunsChris/reference/Grid_Areas_ID.csv",sep=""),

tethysFilesScarcity

Default=NULL,

xanthosFilesScarcity

Default=NULL,

spanLowess

Default = 0.25

popFolder

Default = <-paste(getwd(),"/dataFiles/grids/griddedIDsPop/",sep="")

popFiles

Default = <-"grid_pop_map"

biaFolder

Default = <-paste(getwd(),"/dataFiles/grids/griddedIDsbia/",sep="")

biaFiles

Default = <-"grid_bia_map"

popUnits

Default = <-"person"

dirOutputs

Default =paste(getwd(),"/outputs",sep=""),

folderName

Default=NULL

saveFormat

Default="rds". Choose between "rds" (Native R much faster) or "csv" or "both".

filterYears

Default=seq(1980,2100,by=5)

Value

A table with data by polygon ID for each shapefile provided


zarrarkhan/metis documentation built on May 7, 2020, 11:59 p.m.