bioXgeo / geodiv

Other
11 stars 2 forks source link

How to retrieve surface area en square meters ? #7

Closed paul-carteron closed 1 year ago

paul-carteron commented 2 years ago

Hello, I am trying to calculate the surface of a landscape using a digital elevation model. I use your function surface_area(x). The results of this function depend on the input resolution of the raster. I guess it is as the definition says a "scaled surface area". Is there a solution to calculate the surface in square meters from the scaled surface area? Or more Thanks in advance

adammwilson commented 2 years ago

The area() function in the raster package will compute the 2D area of a pixel (assuming it's flat).

Also, the sdr() function in this package returns the surface area ratio of a raster - which could be multiplied with the output of raster::area() to get the area in real units.