Description Usage Arguments Value
View source: R/metis.grid2poly.R
This function takes a .csv file with gridded lat, long data and aggregates the data by spatial boundaries given different shapefiles.
1 2 3 4 5 |
grid |
Default=NULL. Grid file in .csv format or a R table, data frame or tibble with as a minimum columns with "lat","lon" and "value", |
boundaryRegionsSelect |
Default=NULL. Larger region name which will be used as the folder name for outputs. |
subRegShape |
Default=NULL. shapefile over which grid data is to be aggregated. |
subRegShpFolder |
Default=NULL. Folder containing boundary region shapefile. Suggested paste(getwd(),"/dataFiles/gis/naturalEarth",sep Default=""), |
subRegShpFile |
Default=NULL. Name of sub-region shapefile. Suggested paste("ne_10m_admin_1_states_provinces",sep Default=""), |
subRegCol |
Default= NULL. Suggested for states "name", |
subRegType |
Default="subRegType". Eg. "states", "basins" etc. |
aggType |
Default=NULL. Aggregation method to be used. Either "vol" or "depth" dependening on the type of data provided. |
dirOutputs |
Default=paste(getwd(),"/outputs",sep Default=""), |
nameAppend |
Default="", |
labelsSize |
Default =1.2. Label size for the region names for the gridoverlay plot. |
A table with data by polygon ID for each shapefile provided
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.