Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. A=list.files(path ="D:/TELEDETECCION/DATAMOD/A", pattern = "*.tif",full.names=T)
  2. B=list.files(path ="D:/TELEDETECCION/DATAMOD/B", pattern = "*.tif",full.names=T)
  3.  
  4. slope <- overlay(A, B, fun=function(x, y) {if (is.na(x[1])) { NA } else {lm(x[1] ~ y[1])$coefficients[2]}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement