filmov
tv
Spatial Interpolation with GDAL in Python #1: Nearest Neighbor and Moving Average

Показать описание
In this tutorial, I will give an introduction to the spatial interpolation algorithms nearest neighbor and moving average. We will use gdal.Grid() from the geospatial data abstraction library GDAL to create a regular grid from scattered point data in Python.
Chapters:
0:00 Introduction
1:33 Nearest Neighbor
14:14 Moving Average
Code:
from osgeo import gdal
from osgeo import ogr
layer = pts.GetLayer()
gt = dem.GetGeoTransform()
ulx = gt[0]
uly = gt[3]
res = gt[1]
xsize = dem.RasterXSize
ysize = dem.RasterYSize
lrx = ulx + xsize * res
lry = uly - ysize * res
dem = None
# nearest neighbor interpolation
pts = layer = None
algorithm = "nearest", outputBounds = [ulx,uly,lrx,lry],
width = xsize, height = ysize)
nn = None
# moving average
algorithm = "average:radius1=1000:radius2=800:angle=20",
outputBounds = [ulx,uly,lrx,lry],
width = xsize, height = ysize)
ma = None
Chapters:
0:00 Introduction
1:33 Nearest Neighbor
14:14 Moving Average
Code:
from osgeo import gdal
from osgeo import ogr
layer = pts.GetLayer()
gt = dem.GetGeoTransform()
ulx = gt[0]
uly = gt[3]
res = gt[1]
xsize = dem.RasterXSize
ysize = dem.RasterYSize
lrx = ulx + xsize * res
lry = uly - ysize * res
dem = None
# nearest neighbor interpolation
pts = layer = None
algorithm = "nearest", outputBounds = [ulx,uly,lrx,lry],
width = xsize, height = ysize)
nn = None
# moving average
algorithm = "average:radius1=1000:radius2=800:angle=20",
outputBounds = [ulx,uly,lrx,lry],
width = xsize, height = ysize)
ma = None
Spatial Interpolation with GDAL in Python #2: IDW and Linear Interpolation
Spatial Interpolation with GDAL in Python #1: Nearest Neighbor and Moving Average
How to interpolate geospatial points to contours with Python and GDAL - Tutorial
Using geopandas GeoDataFrame in gdal.Grid for spatial interpolation viz IDW, nearest neighbour etc
Read and write vector files with GDAL/OGR in Python
GDAL tutorial: read vector files with OGR/GDAL in python
Tutorial: Spatial interpolation of borehole data with PCRaster Python
Interpolacja DEM w QGIS
GIS: Smoothing/interpolating raster in Python using GDAL? (3 Solutions!!)
Spatial Interpolation in GIS
Using thin-plate-spline Transformation - Mastering GDAL Tools
Spatial Interpolation Using ArcGIS Online
Creating Overviews - Mastering GDAL Tools
A 'Crash Course' on Spatial Interpolation
Module 1: Introduction to the command line and GDAL
GDAL Tutorial #2: Converting, Resampling, Reprojecting, Clipping
Splitting raster data into equal pieces with GDAL in Python
GDAL Tutorial #1: Introduction + Installation
How to create a geospatial Raster from XY data with Python, Pandas and Rasterio - Tutorial
GIS: Python interpolation analogues of gdal.Grid
M11A Introduction to Spatial Interpolation
Modeling of Soil Chemical Properties using RS, ANN and Spatial Interpolation Techniques
GIS: NumPy to GeoTiff for use with Gdal
GDAL - Geospatial Data Abstraction Library
Комментарии