This function downscales data by subregion by given gridded data
metis.downscale( polygonTable = NULL, gridTable = NULL, downscaleRes = "grid050", shape = NULL, shapeFolder = NULL, shapeFile = NULL, colName = "subRegion", dirOutputs = paste(getwd(), "/outputs", sep = ""), fname = "downscale", nameAppend = NULL, folderName = NULL, saveFile = T, printFig = F )
| polygonTable | Default = NULL, |
|---|---|
| gridTable | Default = NULL. Full path to grid file or R tibble or for pre-loaded data one of "pop". |
| downscaleRes | Default = grid050. Can Choose grid025 or provide a dataframe with equally spaced lat and lon. |
| shape | Default = NULL, |
| shapeFolder | Default = NULL, |
| shapeFile | Default = NULL, |
| colName | Default = "subRegion", |
| dirOutputs | Default = paste(getwd(),"/outputs",sep=""), |
| fname | Default = "gridByPoly" |
| nameAppend | Default = NULL |
| folderName | Default = NULL |
| saveFile | Default = F. If want csv output then change to T |
| printFig | Default = F. If grid overlap with shape is wanted |
Prints out graphic