metis.bia: metis.bia

Description Usage Arguments Value

View source: R/metis.bia.R

Description

This function downscales GCAM electricity generation and installed capacity onto a grid, based on WRI PowerWatch dataset of present capacity

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
metis.bia(
  biaInputsFolder = "NA",
  biaInputsFiles = "NA",
  dirOutputs = paste(getwd(), "/outputs", sep = ""),
  reReadData = 1,
  regionsSelect = NULL,
  regionsSelectDiagnostic = NULL,
  dataProj = "dataProj.proj",
  dataProjPath = NULL,
  scenOrigNames = NULL,
  scenNewNames = NULL,
  gcamdatabasePath = "NA",
  gcamdatabaseName = "NA",
  queryxml = "metisQueries.xml",
  queryPath = paste(getwd(), "/dataFiles/gcam", sep = ""),
  queriesSelect = "All",
  paramsSelect = c("elecByTech", "elecCapBySubsector"),
  gridChoice = "grid_050",
  diagnosticsON = F,
  subsectorNAdistribute = "even",
  folderName = NULL,
  nameAppend = ""
)

Arguments

biaInputsFolder

Bia Inputs Folder Path

biaInputsFiles

Bia Inputs Folder Path

dirOutputs

Default=paste(getwd(),"/outputs",sep Default=""). Location for outputs.

reReadData

Default = 1. will read the GCAM data base and create a queryData.proj file in the same folder as the GCAM database. If FALSE will load a '.proj' file if a file with full path is provided otherwise it will search for a dataProj.proj file in the existing folder which may have been created from an old run.

regionsSelect

The regions to analyze in a vector. Example c('Colombia','Argentina')

regionsSelectDiagnostic

Default = NULL (sets to regionsSelect). Choose the regions to run diagnostics.

dataProj

Optional. A default 'dataProj.proj' is produced if no .Proj file is specified.

dataProjPath

Default = NULL. Folder that contains the dataProj or where it will be produced.

scenOrigNames

Original Scenarios names in GCAM database in a string vector. For example c('scenario1','scenario2).

scenNewNames

New Names which may be shorter and more useful for figures etc. Default will use Original Names. For example c('scenario1','scenario2)

gcamdatabasePath

Path to gcam database folder

gcamdatabaseName

Name of gcam database

queryxml

Full path to query.xml file

queryPath

Folder that contains the query.xml file.By default it is the same folder as specified by gcamdatabasePath

queriesSelect

Default = "All". Vector of queries to read from the queryxml for example

paramsSelect

Default = c("elecByTech", "elecCapBySubsector") . Vector of parameters to be read from the GCAM database

gridChoice

Default = "grid_050" . Choice of whether to use 50 km x 50 km grid cells ("grid_050") or 25 km x 25 km ("grid_025").

diagnosticsON

Default = T.

subsectorNAdistribute

Default = "even". Choose "even" for even distribution or "totalOther" to distribute based on sum of all other subsectors..

folderName

Default = NULL,

nameAppend

Default=""

Value

A tibble with GCAM electricity generation distributed on a grid for selected regions


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