I have created 156 subbasins from initial raster. Now for any subbasins I need to have the volume of raster and the lowest point and insert in second moment in a table. I use Grass Gis software.
What is the better way for it?
Use r.univar
with the zones
option. The basins raster will be the zones, and the original dem will be the input map. The results will be put into a file you specify.
If the basins are already polygons, the v.rast.stats
will also work. The results appear as additional attributes in the polygon vector's attribute table.
v.rast.stats
with the dem as the raster parameter, and you will get additional columns in the vector attribute table with values for MIN, MAX, SUM, MEAN and other stats from the raster for each subbasin . Hope that's clear.