Questions tagged [loop]

A sequence of instructions that repeats either a specified number of times or until a particular condition is met.

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
540 views

Accelerating python looping process for A-star path finding on DEM surface?

I try to make an A-star Path Finding program base on tile-graph (image raster data as graph) where each pixel values represent as cost and elevation.. In my case, DEM raster data was called by using ...
2
votes
0answers
13 views

Iterator (Iterate Feature Selection) running loop in undesired path using ArcMap ModelBuilder?

I am building a model using Iterate Feature Selection. I want to run the Iterator -> select by location -> Calculate field, and after finishing this loop (#3 in the image below), I will continue to ...
2
votes
0answers
73 views

Map Algebra loop only creating one raster

I'm trying to transform a bunch of rasters in arcpy according to specific functions to create suitability rasters. This portion of the code is supposed to find all the rasters with interpolated ...
2
votes
0answers
55 views

pyQGIS - How to make a reproducible example with dummy rasters?

I'm having troubles with a pyQGIS script. I'm trying to create a large number of maps showing NDVI in a certain area over the time. The script opens a raster file, applies a style, changes title and ...
2
votes
0answers
157 views

GRASS 6.4.4 vector command in crashes QGIS 2.4 (g.gisenv.exe has stopped working)

I am running Windows 8.1 64 bit, and have QGIS 2.4 and 2.6 installed. When I try to use a GRASS 6.4.4 vector command (specifically v.clean), I receive an error message in an endless loop, and the only ...
1
vote
0answers
23 views

Loop in ModelBuilder in a specific situation

I would like to make a loop in the next model base on a expression, this expression received a code with consecutive numbers in a reference layer call "sector", to summarize, for each "code" do a "...
1
vote
0answers
50 views

Extract time series from ImageCollection for multiple points - Google Earth Engine

I have the Sentinel 2 (COPERNICUS/S2) ImageCollection and a FeatureCollection of points. I want to extract a time series for each of the points from the band information in the ImageCollection. So ...
1
vote
0answers
32 views

Creating loop in raster algebra which compares each cell to values of other rasters in time series?

I have a list of rasters representing NDVI values (and plan to do similar thing with some other index values as well) and in that raster I also set all values representing clouds to NoData. Now, for ...
1
vote
0answers
32 views

Make a script run indefinitly

I have created a script which reads a JSON file and based on the attributes creates a grid and assigns values to the grid. This JSON file may change. I wanted to create an infinite loop to run the ...
1
vote
0answers
152 views

Handle NA value in loop of raster data

I am working with series of raster data. I am checking temporal outlier of each pixel by using image before and after, then replace current pixel value (t) by average of image before (t-1) and after ...
1
vote
0answers
54 views

Loop to increase value on Parameter of Model?

I'm working on the ArcGIS Model Builder to develop a model that makes a Raster Calculation using a Value Parameter and analyzes the maximum pixel value of the result, comparing to a Reference Value. ...
1
vote
0answers
767 views

While loop in QGIS modeler

I am looking for a way in QGIS - preferably using the graphical modeller but console scripting will also do - to build a model that iterates through features of a given layer until a condition is met -...
1
vote
0answers
249 views

Eliminate in Arcpy

I am attempting to move away from Coverages. One of the tools we have did a great job of eliminating slivers from our datasets based on hard and soft boundaries for elimination rulesets; howver, it is ...
1
vote
0answers
69 views

label based on related features

Esri's telecom data model has 2 geometric networks, one for infrastructure (manholes and conduits) and one for fiber cables. fiber cables are easily related to a section of conduit based on existing ...
0
votes
1answer
45 views

Make a loop in Google Earth Engine for reduce NDVI from year a months?

I have this code, it generate N ImageCollection and for each image a chart from NDVI in function a the months This is the place of study: var areaEst = ee.FeatureCollection("users/aleszczuk/...
0
votes
1answer
37 views

Didn't show all the column while export the CSV file while using Google Earth Engine

I'm trying to calculate the water areas and the statistics of each band for each water areas to see if there are seasonal changes. The exported .csv file only have the columns ("GNIS_ID","AreaSqKm","...
0
votes
0answers
161 views

Data organization in Google Earth Engine image collection?

I defined an image collection contains all landsat SR images(LT5,LE7 and LC8) only including some specific bands each. Finally 685 images in path 120 and row 32, each contains 10 bands were selected. ...
0
votes
0answers
33 views

Extract values from multiple rasters based on lookup of raster file name

I have 11 raster files (waveheightfiles), and need to extract one value from a different set of coordinates (station) for each raster. I have a list of 11 coordinates (df2) and have used part of the ...
0
votes
1answer
40 views

Looping a function over a sequence of parameters with iterate()

I built a function landcov(area, date) to calculate the share of land types 0 to 3 in year "date" from MODIS12Q1 within the polygons of the "area" parameter. I want to use iterate() in a loop-like ...
0
votes
0answers
15 views

ogr2ogr loop through feature classes in FGDB except one feature class

I have multiple fgdb and I wanted to merge this to one FGDB and this is the command I used so far find . -path "*/*1*/*.gdb" -o -path "*/*2*/*.gdb" -o -path "*/*3*/*.gdb" \ -o -path "*/*4*/*.gdb" -o -...
0
votes
1answer
43 views

gdalwarp for clipping images using multiple polygon in a bash shell for loop

C:\OSGeo4W64\bin\gdalwarp.exe -dstnodata 0 -q -cutline D:\hillsborough_Images_work\split_Polygon\120-140k\Hillborough_FINAL_140000_region_IGD_120570003d29ed0dc.shp -crop_to_cutline -dstalpha -tr 0....
0
votes
0answers
96 views

Saving rasters in Arcpy loop

I'm trying to do Map Algebra on a bunch of rasters by iterating through a for loop and saving them in an empty geodatabase. However, they aren't saving properly. Only the last raster is created and it ...
0
votes
0answers
340 views

ArcGIS calculate average value

I would like to get the average value of specific attributes. I have a table with columns like: ID, P1, E1, Age1, P2, E2, Age2, P3, E3, AverageAgeP, AverageAgeE Sometimes there is a value for P, ...