New answers tagged loop
0
votes
Issue using while loop in Google Earth Engine
I typically use iterate(). It is essentially the same as JavaScript's reduce(). It takes two arguments, the first is a function that will be invoked for each element in a list/collection, getting ...
0
votes
Loop an operation in all features
Check your field data type. If it is decimal you will have to convert your datarange variable to a float. Your code should work. I tested with putting a decimal in datarange. Also getting the ...
1
vote
Loop an operation in all features
You can use an expression like this, which you can execute using python like this.
If you dont want to use expression you can:
import datetime
layer = QgsProject.instance().mapLayersByName("...
0
votes
Double indexing and looping over raster lists in R
This aproach shoud work:
re_zero <- list()
for(i in 1:length(re)){
r <- re[[i]]
r[is.na(r[])] <- 0
re_zero[[i]] <- r
}
Top 50 recent answers are included
Related Tags
loop × 378arcpy × 143
r × 66
raster × 56
python × 47
arcgis-desktop × 41
google-earth-engine × 32
cursor × 29
pyqgis × 26
qgis × 24
modelbuilder × 19
iteration × 19
iterator × 17
shapefile × 11
spatial-analyst × 10
google-earth-engine-javascript-api × 10
list × 10
for-loop × 10
arcmap × 9
arcgis-10.2 × 9
field-calculator × 9
function × 9
grass-gis × 9
arcgis-10.0 × 8
ndvi × 8