Questions tagged [parallel-processing]
Use this tag when asking questions about multi or parallel processing - a programming paradigm used to speed up computationally intensive geoprocessing tasks by executing them over multiple CPU cores or threads.
126 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
54
views
Parallelizing raster file generation in ArcGIS Pro [closed]
I am currently working on an a Python version of ArcGIS-Based Nitrogen Load Estimation Toolbox Developed for ArcGIS Pro called ArcNLET. I have a question regarding the Parallel Processing Factor (...
0
votes
0
answers
92
views
ArcPy function produced None values in multiprocessing
I'm trying to get my script in multiprocessing, but the arcpy.management.CalculateGeometryAttributes produced None values. I tried it in for loop and it worked perfectly fine.
import os
import ...
2
votes
1
answer
50
views
How to deal with concurrency when inserting polygons in a SQL table in a way that they don't intersect with each other
Problem:
I have a table X, in which I am inserting polygons (ex: geometry data for a city). Before inserting them, I check if the input polygon intersects with any existing polygon in the table and ...
0
votes
1
answer
238
views
GeoDataFrame.overlay parallelization with multiprocessing
I'm trying to speed up the calculation of the intersection between two geodataframes with multiprocessing. I'm using GeoPandas with JupyterLab from Anaconda on Linux.
My multiprocessing code currently ...
0
votes
1
answer
1k
views
AttributeError: 'Dataset' object has no attribute 'rio' when using a LocalCluster from dask.distributed
I am trying to parallelize a function that uses a zarr datacube read from an s3 bucket to perform some calculations. However, when using a LocalCluster from dask.distributed, I lose the .rio accessor ...
0
votes
1
answer
69
views
Missing Outputs with ArcPy RasterToASCII and ThreadPoolExecutor
When I use ThreadPoolExecutor, I am missing a random number of expected outputs. I tried making an MRE to show what I am trying to do. The first MRE works but when I run a second MRE (which is closer ...
1
vote
1
answer
53
views
How to iterate through raster conversion concurrently while using map function in Python
I am trying to troubleshoot some issues I'm having with the Python map function that is part of a larger problem I'm having with trying to run my code concurrently. Why does map() here create an empty ...
0
votes
0
answers
372
views
Optimize the resampling and projection of multiple NetCDF files in R using terra
I have a set of 35 NetCDF files (continental scale), each containing 365 daily layers of climate data with a resolution of 5 km, s. I need to do two main tasks:
Subset, s_sub, these files based on a ...
0
votes
0
answers
186
views
Error while creating Worker Pools in GeoTIFF
I have to extract rasters from a large TIFF file (about 8MB). For this purpose I use GeoTIFF v.2.0.7 readRasters, but performance is unsatisfying:
reading rasters took: 395143.48280000035 ms
As a ...
3
votes
2
answers
328
views
Accessing layers from QgsContext transferred by completed QgsTask using PyQGIS
We have a headless QGIS standalone script that needs to run some I/O intensive layer retrieval tasks, each as parallel background threads before doing further GIS processing.
We are invoking our ...
2
votes
0
answers
245
views
Using ThreadPoolExectuor doesn't work with ArcPy
I have a Python function that downloads a geopackage from somewhere then does some stuff with it and at some point converts it to an ESRI file geodatabase.
Now inside a python script I want to use ...
3
votes
2
answers
1k
views
Easy examples for multiprocessing in PyQGIS
I've gone through a large number of forum threads and cannot make sense of how possible it is to easily run two tools at the same time in PyQGIS.
Basically what I'm wanting to do is:
def function1():
...
1
vote
1
answer
223
views
Clipping gpkg's using parallel processing and R
I have two large gpkg datasets. I would like to clip one from the other and use parallel processing to speed up the process. However, I receive an error message. Code and error message shown below:
#...
0
votes
0
answers
272
views
How use multiprocessing with function arcpy.da.InsertCursor
I'm working with a table in the database that has more than 1 million records and a total load of this table takes about 8 hours because it has geographic data, the table is a featureclass. Basically, ...
2
votes
1
answer
549
views
Concurrent requests while querying a map service returns duplicate sets
I have a Python script that hits a query endpoint for a map service on an unfederated server. I am avoiding the arcgis library because it is not performant enough and its compatibility with geopandas ...