Skip to main content

A library to ease the manipulation of geospatial images

Project description

Introduction

rastereasy is a Python library for simple manipulation of georeferenced images (*.tif, *.jp2, *.shp, ...). The goal is to simplify geospatial workflows by offering tools for reading and processing raster and vector files, resampling, cropping, reprojecting, stacking, etc of raster images, easy visualizations such as color composites and spectral plots, use (train / apply) some classical Machine Learning algorithms on images, provide some tools for late fusion of classifications (Dempster-Shafer), ...

The main class, Geoimage, enables to process raster similarly than numpy arrays while keeping and adapting all meta data.

Documentation

A complete documentation can be found here

Example Usage

Here's a quick example of what you can do with rastereasy:

 import rastereasy

 # Load a georeferenced image
 image = rastereasy.Geoimage("example.tif")

 # Get image information
 image.info()

 # Print value of pixel [100,200]
 print(image[100,200])

 # Create a color composite
 image.colorcomp(['4', '3', '2'])

 # Resample and reproject
 image_resampled = image.resampling(2)
 image_reproject = image.reproject("EPSG:4326")

 # Save the processed image
 image.save("processed_image.tif")

Installation

With pip

Install rastereasy via pip (the easiest method):

 $ pip install rastereasy

From source

To install rastereasy from source:

  1. Clone the repository from GitHub:
$ git clone https://github.com/pythonraster/rastereasy.git
  1. Navigate to the repository's root directory:
$ cd rastereasy
  1. Install the package using pip:
$ pip install .

Interactive Visualization Notes

Spectra visualization

As illustrated, rastereasy supports interactive plotting of spectral bands for individual pixels. To enable this functionality in Jupyter Notebook, rastereasy installs some Jupyter extensions in your environment. You then need to rebuild jupyter by the command:

jupyter lab build

To do

Check conda installation

Authors

Citation

If you use rastereasy, please cite:

Thomas Corpetti, Pierrick Matelot, Augustin de la Brosse, Candide Lissak Rastereasy: A Python package for an easy manipulation of remote sensing images Journal of Open Source Software, submitted, 2025.

License

This project is licensed under the MIT License – see the LICENCE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rastereasy-0.1.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rastereasy-0.1.0-py3-none-any.whl (133.2 kB view details)

Uploaded Python 3

File details

Details for the file rastereasy-0.1.0.tar.gz.

File metadata

  • Download URL: rastereasy-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for rastereasy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6cc578d49d8989c9e36f5d3267f335a4118ffade29f216b27f8b815d624d7a67
MD5 5d7341f02081c6a972020305e5ec8227
BLAKE2b-256 83e21de7c8f8d9dae0f9f140fe82183a7b5ba303f3f023955557aafd3d310e80

See more details on using hashes here.

File details

Details for the file rastereasy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rastereasy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 133.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for rastereasy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0fda4227dfe4ba069cb1f418368198db5818b5bd837be8e1e224308648c0b69
MD5 bb147e8347cffa44ae92ddf3bfa91d0a
BLAKE2b-256 b99308604310ccafd6209336728eba6fc898c2c24f4be85484983947d131a7c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page