New answers tagged

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 ...
Daniel Wiell's user avatar
  • 13.5k
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 ...
Cary H's user avatar
  • 838
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("...
BERA's user avatar
  • 67k
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[[])] <- 0 re_zero[[i]] <- r }
sermomon's user avatar
  • 1,086

Top 50 recent answers are included