Skip to content

Instantly share code, notes, and snippets.

@ishiland
ishiland / GEOBIA_segmentation_multiprocessing.py
Created September 26, 2021 21:32
example using multiprocessing / parallelization to get statistics for segments in a GeOBIA workflow
from multiprocessing import Pool, cpu_count
import time
from functools import partial
import numpy as np
import scipy
from skimage.segmentation import slic
from osgeo import gdal
from skimage import exposure
@ishiland
ishiland / geosupport_multiprocessing.py
Last active March 9, 2020 18:20
Python-Geosupport and Pandas with Multiprocessing example
from geosupport import Geosupport, GeosupportError
import pandas as pd
from multiprocessing import Pool, cpu_count
from functools import partial
import numpy as np
"""
Example of how to use python-geosupport, Pandas and Multiprocessing to speed up geocoding workflows.
"""