共1个raster相关

itarticle
plotting wind highways using rwind Now we can use wind.dl_2 with this sequence of dates. Have into account # that it could take a while, they are 30 datasets and it’s a big area. Now, we select only the maximum speed values for each coordinate We can also check the maximum speed value in the whole study area Finally, we can transform this data into a raster layer And then use wind2raster directly to create a raster layer We can plot a subset of this raster around Azores Islands. # Using “arrowDir” we can include arrows for wind direction with # “Arrowhead” function from “shape” R package Check how “loc” is looking You can plot them #plot(r_mean$wind.speed, col=acol(1000)) #lines(getMap(resolution = “low”), lwd=2) #points(loc, col=”red4”, pch = 19, cex = 2) 2) Conductance from wind direction and speed 3) and 4) Using a loop to compute cost between # locations and least cost paths between location 11 # and Azores islands (as an example). Obtain connectivity averages Here we filter only connectivity from mainland to Azores # As connectivity has arbitrary magnitude and units, we will # multiply connectivity values 1000 times to avoid decimal zeros. Finally, we can plot connectivity values relative to the width # of the connections between mainland and Azores. You can power # the values to increase the differences between them. Now, we can obtain a kernel density of the paths # and convert it into a raster layer that can be plotted. # You can play with sigma value to modify the smoothing.