Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Spatial Interpolation with GDAL in Python #2: IDW and Linear Interpolation

  • Making Sense Remotely
  • 2021-02-24
  • 15042
Spatial Interpolation with GDAL in Python #2: IDW and Linear Interpolation
spatial interpolationspatial interpolation gdalgdal gridgdal pythongdal python tutorialspatial interpolation methods
  • ok logo

Скачать Spatial Interpolation with GDAL in Python #2: IDW and Linear Interpolation бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Spatial Interpolation with GDAL in Python #2: IDW and Linear Interpolation или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Spatial Interpolation with GDAL in Python #2: IDW and Linear Interpolation бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Spatial Interpolation with GDAL in Python #2: IDW and Linear Interpolation

In this second interpolation tutorial, I talk about the Inverse Distance to a Power and Linear Interpolation algorithms available for the program gdal_grid (or gdal.Grid() if you use the GDAL Python API). I explain a little about the theoretical background of these spatial interpolation algorithms and then apply them to create a regular grid from scattered point data in Python.

gdal_grid documentation: https://gdal.org/programs/gdal_grid.html
GDAL Grid Tutorial: https://gdal.org/tutorials/gdal_grid_...
GDAL/OGR Python API: https://gdal.org/python/
Great playlist on Delaunay triangulation:    • Delaunay Triangulation | Computational Geo...  

Chapters:
0:00 Recap
1:06 Inverse Distance to a Power
10:54 Linear Interpolation

Updated Code:

from osgeo import gdal
from osgeo import ogr

pts = ogr.Open("points.shp", 0)
layer = pts.GetLayer()

for field in layer.schema:
print(field.name)

dem = gdal.Open("dem.tif")
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
pts = layer = None

nearest neighbor interpolation
nn = gdal.Grid("nearest.tif", "points.shp", zfield="elevation",
algorithm = "nearest", outputBounds = [ulx,uly,lrx,lry],
width = xsize, height = ysize)
nn = None

moving average
ma = gdal.Grid("average.tif", "points.shp", zfield="elevation",
algorithm = "average:radius1=500:radius2=800:angle=20",
outputBounds = [ulx,uly,lrx,lry],
width = xsize, height = ysize)
ma = None

inverse distance to a power
idw = gdal.Grid("invdist.tif", "points.shp", zfield = "elevation",
algorithm = "invdist:power=3:radius1=2000:radius2=2000",
outputBounds = [ulx,uly,lrx,lry],
width = xsize, height = ysize)
idw = None

linear interpolation
lin = gdal.Grid("linear.tif", "points.shp", zfield = "elevation",
algorithm = "linear",
outputBounds = [ulx,uly,lrx,lry],
width = xsize, height = ysize)
lin = None

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]