Rioxarray

Read raster data from postgis using python

In this tutorial, we will learn how to read raster data from postgis table using python. Python is a powerful tool for raster data analysis due to rich library ecosystem: Python has a large number of libraries specifically designed for geospatial data analysis, such as rasterio, rioxarray, gdal, geopandas, shapely, etc. These libraries provide a …

Read raster data from postgis using python Read More »

Merge rasters in Python using Rioxarray

Rasters merging/mosaic is one of the common task in raster processing. In this tutorial, we will merge multiple rasters into one in python using Rioxarray. Merging/mosaic multiple rasters into one is also known as union of rasters. Rioxarray is open source gis package that extends the functionality of xarray by rasterio. Before merging multiple rasters …

Merge rasters in Python using Rioxarray Read More »

Upsample and Downsample raster in python using rioxarray

Raster resampling refers to altering the raster resolution by changing raster grid. Upsampling refers to reducing pixel size and increasing resolution. And downsampling refers to increasing pixel size and reducing resolution. The raster resampling or upscaling/downscaling is done when you want to convert 10 meter cell to 50 meter cell or vice versa. Even when …

Upsample and Downsample raster in python using rioxarray Read More »

Clip raster by polygon geometry in Python using Rioxarray

Clip/crop raster by polygon geometry in Python using Rioxarray Raster clipping is one of the common task in raster processing. In this tutorial, we will clip a raster by polygon geometry in python using Rioxarray. Rioxarray is open source gis package that extends the functionality of xarray by rasterio. Before cropping/clipping the raster data, we …

Clip raster by polygon geometry in Python using Rioxarray Read More »

Rasterize vector data using GeoPandas and GeoCube

In this tutorial, we are gonna convert a Polygon and Points vector data into raster format by using GeoPandas and GeoCube in python. To get full source code for this tutorial, click here. All the related Polygon and Point data used in this tutorial are in repository. Before rasterizing the vector, we will set up …

Rasterize vector data using GeoPandas and GeoCube Read More »

Polygonize Raster using Rioxarray and GeoPandas

Rioxarray is python library which combines xarray and rasterio library for raster analysis. Xarray is open source and python packages that makes working with labelled multi dimensional array very efficient. RasterIO is open source and python package based on gdal to read/write and analyze raster data. Rioxarray extends xarray with rasterio accessor. One of the …

Polygonize Raster using Rioxarray and GeoPandas Read More »