Skip to content
Prev 25106 / 29559 Next

Calculate the area of pixel in square kilometers from a raster in lat/long projection

Hi Thiago,


The function calculate the area by pixel "like raster::area", but, considering the distortions of projection and transforming from degree to hectares (or square kilometers, if someone need).

The problem is: how to compute the area for raster maps during the interactive process and compare as the values used to define the classification (chosing the thresholds), because the raster::area return the area in the projection of raster, and for huge datasets or multiple aplications in sequence (or both togheter, as in my case), is computational hard to reproject raster ou poor to work with "mean value of pixel" in large rasters......

So, I develop this simple function.
Best
Isaque


------------------------------------------------------------------------------------------------------------------
Eng. Agr. Isaque Daniel Rocha Eberhardt
Mestre em Sensoriamento Remoto - Instituto Nacional de Pesquisas Espaciais (INPE)
Doutorando em Transportes - Universidade de Bras??lia (UNB)
Mobile: +55 (061) 99015658
------------------------------------------------------------------------------------------------------------------
Agronomist engineer
Master in Remote Sensing - National  Institute for Space Research (INPE) - Brazil
PHD Student in Transport - Bras??lia University (UNB)