Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Raster Analysis with Rioxarray

image image

Introduction

Learning Objectives

Setting Up Your Rioxarray Environment

Installing Required Libraries

Importing Libraries and Configuration

Loading and Exploring Georeferenced Raster Data

Understanding Raster Data Structure

Loading a Real Satellite Image

Exploring the Dataset Structure

Accessing Spatial Reference Information

Setting CRS When Missing

Fundamental Geospatial Operations

Coordinate System Transformations

Spatial Subsetting with Bounding Boxes

Vector-Based Clipping

Working with Spatial Dimensions and Resolution

Understanding Spatial Resolution

Resampling to Different Resolutions

Spatial Subsetting by Coordinates

Visualizing Geospatial Raster Data

Creating True-Color Composite Images

Visualizing Individual Bands

Overlaying Vector Data on Raster Images

Data Storage and File Management

Saving Processed Raster Data

Managing NoData Values

Coordinate System Comparisons

Side-by-Side Coordinate System Visualization

Introduction to Band Math

Computing Vegetation Indices

Visualizing Vegetation Analysis

Interpreting NDVI Results

Key Takeaways

Exercises

Sample Dataset

Exercise 1: Load and Inspect a Raster Dataset

Exercise 2: Coordinate System Transformation

Exercise 3: Spatial Subsetting with Bounding Boxes

Exercise 4: Vector-Based Masking

Exercise 5: Resolution Analysis and Data Export