This function downscales GCAM electricity generation and installed capacity onto a grid, based on WRI PowerWatch dataset of present capacity
metis.bia( dirOutputs = paste(getwd(), "/outputs", sep = ""), regionsSelect = NULL, regionsSelectDiagnostic = NULL, dataProjFile = "dataProj.proj", gcamdatabase = NULL, gridChoice = "grid_050", diagnosticsON = F, subsectorNAdistribute = "even", folderName = NULL, nameAppend = "" )
| dirOutputs | Default=paste(getwd(),"/outputs",sep Default=""). Location for outputs.  | 
    
|---|---|
| regionsSelect | The regions to analyze in a vector. Example c('Colombia','Argentina')  | 
    
| regionsSelectDiagnostic | Default = NULL (sets to regionsSelect). Choose the regions to run diagnostics.  | 
    
| dataProjFile | Optional. A default 'dataProj.proj' is produced if no .Proj file is specified.  | 
    
| gcamdatabase | Default NULL. Full path to gcamdatabase.  | 
    
| 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=""  | 
    
A tibble with GCAM electricity generation distributed on a grid for selected regions