Karta simplifies management of in- and out-of-memory digital elevation models, satellite imagery, and land classification maps.
Regularly-spaced grids are represented by
RegularGrid , which can be created from Numpy ndarrays and spatial reference information. Grid data is then stored in a chunked and compressed in-memory array for space efficiency, or a simple Numpy ndarray for speed. Grids may also use GeoTiff-backed files for very large data. Experimental support exists for grids with arbitrary spacing, which are represented by
Grids can be clipped, resampled, queried at geographical points, and read or written to ESRI ASCII files or to GeoTiff via GDAL. Functions are provided for computing DEM properties such as slope, aspect, and hillshade.
# Read a grid and resample grid = karta.read_gtiff("region_dem_UTM.tif").resize(bbox) grid_100m = grid.resample(100, 100) hs = karta.raster.hillshade(grid_100m)