Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 24695

Statistical computing language and software environment.

2 votes
1 answer
124 views

R scripting for hillShade

225.41 Jan06 70.50 225.56 Jan11 71.32 226.24 for(d in insol$Date){ hillShade(slope, aspect, angle=insol$Angle, direction=insol$Azimuth, filename=paste(d,".tif")) } Is there a way to tell R
gvanhavre's user avatar
  • 399
3 votes
2 answers
380 views

Using R focal to normalize data

I'm trying to normalize a DEM raster with focal and a function to set values between 0 and 1 (iteratingly from the neighboring cells). Thus, for each cell, a 3x3 matrix is to be created and the functi …
gvanhavre's user avatar
  • 399
1 vote

R - gdistance: setting to 0 the conductance values of cells corresponding to a polyline

. > library(spatialEco) > r2 <- rasterize(AtoB,r,background=0) > r2 <- raster.invert(r2) > r_alt <- r*r2 Now you can change your heightDiff function to introduce an ifelse statement considering these …
gvanhavre's user avatar
  • 399