Skip to main content

pysatgeo

PyPI version conda-forge version

pysatgeo is a small Python package for raster and vector geospatial processing.

The project started as a learning repo for packaging, CI, and geospatial utilities. It has now been trimmed down to a smaller set of maintained modules with clearer imports, better tests, and lighter docs.

Current Scope

The package is organized into a few focused modules:

  • raster: reprojection, clipping, stacking, alignment, polygonizing
  • vector: CRS assignment, format conversion, clipping, dissolve
  • raster_analysis: normalization, reclassification, clustering
  • terrain: DEM-related helpers such as slope and aspect
  • sampling: point generation and raster sampling
  • ranking: simple AHP-style ranking helpers
  • styles, netcdf, and gee: smaller utility modules

Project Status

This package is still modest, but it is much more coherent than the original experimental repo.

  • Public imports are available from pysatgeo itself.
  • Top-level imports are resolved lazily to keep import pysatgeo lightweight.
  • Core behavior is covered by automated tests.
  • Old experimental modules that were not maintained or documented have been removed.

Installation

Because the package depends on GDAL, rasterio, and geopandas, a Conda environment is usually the easiest setup, especially on Windows.

Example:

conda create -n pysatgeo python=3.11 -y
conda activate pysatgeo
conda install -c conda-forge geopandas rasterio rioxarray gdal pyarrow shapely xarray scikit-learn matplotlib mapclassify scipy pytest -y
pip install pysatgeo

If you are working from this repository:

pip install -r requirements.txt
pip install -e .

Quick Start

Import the package directly:

import pysatgeo

Use functions from the top level:

import pysatgeo

pysatgeo.reproject_clip_resample_tiff(...)
pysatgeo.assign_crs_to_vector(...)

Module-level imports still work too:

from pysatgeo.raster import reproject_clip_resample_tiff
from pysatgeo.vector import assign_crs_to_vector

Development

Run the test suite from the repository root:

conda run -n pysatgeo pytest -q

The current test suite covers:

  • top-level package import behavior
  • raster and vector validation paths
  • raster sampling and analysis helpers
  • ranking helpers
  • NetCDF and style parsing utilities

Documentation

Project documentation lives in the docs/ folder and is published at:

https://JPPereira93.github.io/pysatgeo

The most useful pages are:

  • docs/usage.md for quick examples
  • docs/installation.md for environment setup
  • the API Reference pages for module docs

License

MIT License

Metadata

Release files for pysatgeo 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysatgeo 1.0.0
File Size Uploaded Provenance Actions
pysatgeo-1.0.0.tar.gz 23.1 kB Without provenance Details for pysatgeo-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pysatgeo 1.0.0
File Interpreter ABI Platform Actions
pysatgeo-1.0.0-py3-none-any.whl Python 3 none any Details for pysatgeo-1.0.0-py3-none-any.whl

Total release size: 45.2 kB

Release files / pysatgeo-1.0.0.tar.gz

Download URL pysatgeo-1.0.0.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aecb9682b140fff26e0db249a31a301f7c177a3615315cd998afe74df6e77998
BLAKE2b-256 checksum
How to use checksums
f85ffca4d602c658c07bd2d9e4fead94407f7c8cf6b720e74bb0c2496fcb7b4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / pysatgeo-1.0.0-py3-none-any.whl

Download URL pysatgeo-1.0.0-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71ea791831c2f63a131045e30669d1d1ed91514df857369e8ee8f0e00a3d8b36
BLAKE2b-256 checksum
How to use checksums
3da6daa8e0f3cb0e15afa062fb4fcd0748add4fe307688509db8bbfca0e3e793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Security for pysatgeo 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page