kyle-messier / NC_Heat_Model

High-Resolution NC Temperature and Humidity Mapping
1 stars 1 forks source link

Add terrain additional covariates (slope, aspect, roughness, flowdir) #75

Closed eva0marques closed 6 months ago

eva0marques commented 7 months ago

Easily added with terrain function in terra (with default parameters).

Terrain spec: https://rdrr.io/cran/terra/man/terrain.html

Slope

Aspect If no slope: 90 degrees Else: angle clockwise from the North.

Roughness Roughness is the difference between the maximum and the minimum value of a cell and its 8 surrounding cells.

Flowdir Values encoded as power of 2 (x is the cell): IT IS A DISCRETE VARIABLE 32 64 128 16 x 1 8 4 2 Cells are set to 0 if no lower neighboring.