-main
(-main & args)
Upscales the GIS-based variables to the level of administrative
division by averaging the values on the GIS lattice.
Saves results into a csv file
in the root execution directory.
Arguments: map-folder
region-path
Original GIS-based maps are read from the .asc files by the [map-folder] address.
Reference map of regional administrative division is read
from an .asc file by the [region-path] address.
Each position on the regional map is assigned to an identifier of the
administrative unit, to which this location belongs.
Upscaling (averaging): values are averaged through administrative unit.
output: lu-rescaling/sample.csv
Saved csv table contains tuples of administrative unit id and
averages in every map provided.
The first row contains file names of the source maps.
The first column contains identifiers of administrative units.
## Usage
$ lein run "GIS raster maps" sections.asc