I wonder if anyone know how to calculate the Potential solar Radiation (PSR) & Topographic Wetness Index (TWI). in R?

I had DEM imported in R already also with slope, aspect and Topographic position index (TPI). Now I am stuck with how to calculate the Potential solar Radiation (PSR) and also Topographic Wetness Index (TWI).

Thank you.

More Bang Nguyen Tran's questions See All
Similar questions and discussions