Skip to content

This script aims to shows the topographical profile between two chosen points on a raster. If the raster is georeferenced, you can directly use geographical coordinates, or pixel coordinates if it is not. It can be used for rasters on Earth (by default), but also on every planetary body.

License

Notifications You must be signed in to change notification settings

vignonpa/topographical_profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Topographic Profile Extraction

Description

This Python script allows you to extract topographic profiles from a georeferenced raster (e.g., DEM, GeoTIFF) between two points. It works on Earth (by default) but also on other planetary bodies when changing the deg_to_km values. It provides:

  • A plot of elevation vs. distance along the profile.
  • An optional map view of the raster with the profile line and start/end points, and an associated colorbar.
  • Automatic distance conversion to kilometers if the raster is in geographic coordinates (longitude/latitude).
  • Boundary checks to ensure points are inside the raster extent.

This tool is useful for geosciences, planetary science, and earth/planetary data analysis.


Requirements

Install dependencies via pip:

pip install rasterio numpy matplotlib scipy

About

This script aims to shows the topographical profile between two chosen points on a raster. If the raster is georeferenced, you can directly use geographical coordinates, or pixel coordinates if it is not. It can be used for rasters on Earth (by default), but also on every planetary body.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages