[GRASS-user] calculate the volume of a DEM
marion-brunet
marion-brunet at sfr.fr
Sun Jul 8 20:05:24 PDT 2018
<span style="font-family:arial,helvetica,sans-serif"><span style="font-size:12px">Hello,<br>
<br>
I am trying to calculate the volume of a DEM using GRASS.</span></span><br>
<br>
<span style="font-size:12px"><span style="font-family:arial,helvetica,sans-serif">For </span></span><span style="font-family:arial,helvetica,sans-serif"><span style="font-size:11px"><span style="font-size:12px">that</span></span><span style="font-size:12px"> I first calculated the area of my DEM using s.surf.</span><span style="font-size:11px"><span style="font-size:12px">area .</span></span></span><br>
<span style="font-size:12px"><span style="font-family:arial,helvetica,sans-serif">The result was </span>349 492.7m².<br>
Then I used r.univar to get the number of cells, it is 822 244.<br>
So the cell size is 349 492/822 244 = 0,42m²<br>
<br>
To get the volume, I want to multiply this cell size with the total elevation value of my DEM. Where can I find this value? Is it the "sum" at the end of the r.univar report?<br>
<br>
Otherwise, do you think</span><span style="font-size:11px"><span style="font-size:12px"> my</span></span><span style="font-size:12px"> reasonning is correct to calculate the volume of a DEM?<br>
<br>
Thank you for your help,<br>
Marion</span><br>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180709/f5a0466a/attachment.html>
More information about the grass-user
mailing list