Code Monkey home page Code Monkey logo

gdal-rasterio-tutorials's Introduction

GDAL-rasterio-tutorials ๐ŸŒ๐Ÿ“ˆ

Welcome to GDAL-rasterio-tutorials, your go-to resource for mastering raster data processing with GDAL and Rasterio! ๐Ÿš€ Whether you're a GIS professional, an environmental scientist, or just passionate about geospatial data, these tutorials are designed to enhance your skills in handling, analyzing, and visualizing raster data. Dive into these tutorials and start transforming raw data into insightful geospatial information.


Setup

  1. You will need conda installed to create an environment and install GDAL. Once conda is installed, run conda create -n raster_env python==3.10

  2. Activate the new env. conda activate raster_env

  3. Install GDAL conda install -c conda-forge gdal

  4. Install requirements conda install --yes --file requirements.txt

  5. Run notebook server jupyter notebook

Tutorial 1 - Calculate NDVI index. ๐ŸŒฑ

In this tutorial, you'll learn the following:

  1. Basics of reading a raster (single or multi-band) using GDAL Python API.
  2. Procure data from raster cells and transfer it to a numpy array. Procure raster properties such cell size, origin (X, Y), spatial reference and NoDataValue.
  3. Peform a local raster operation across various bands. A local raster operation is a simple raster operation that uses only data at a cell location in the input to compute a value at that same location in the output raster. You'll learn this by calculating NDVI index that used red and NIR band values at every cell location.
  4. Write a raster dataset to disk and transfer the properties of the input raster to it, such as cell size, origin, spatial reference along with an appropriate NoDataValue selected based on the known or expected output value range.
  5. Visualize your data (input and output) using rasterio.plot submodule.

Tutorial 2 - Applying a spatial filter over a moving kernel.๐Ÿ”

In this tutorial, you'll learn the following:

  1. Apply a spatial filter over a moving window on a raster dataset.
  2. Use utilities from built-in customized modules such as 'raster to numpy' and 'numpy to raster' to aid in the application of this filter.
  3. Script a moving window.
  4. Deal with boundary conditions.
  5. Work with Digital Elevation Model (DEM) data.
  6. Handle NoDataValues while performing analysis.

Tutorial 3 - Speed up analysis with concurrent and parallel processing techniques โšก

In this tutorial, you'll learn the following:

  1. How to speed up your analysis using concurrent processing
  2. How to speed up your analysis using parallel processing
  3. Compare concurrent and parallel processing against serialized execution and understand the speed up in performance.

gdal-rasterio-tutorials's People

Contributors

neerubhai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.