A lightweight Python package for preprocessing geospatial optical imagery for machine learning
Project description
fastarray
fastarray is a fast, lightweight Python package for preprocessing geospatial optical imagery (e.g., Sentinel-2) to prepare it for machine learning workflows. It simplifies operations like index computation (NDVI, NDWI, etc.), reprojection, patching, and transformation into PyTorch-ready tensors—while preserving geospatial coordinates.
🚀 Features
- ✅ Compute vegetation and water indices (NDVI, NDWI, etc.)
- ✅ Read raster data into coordinate-aware arrays
- ✅ Clip and reproject rasters using geometries (e.g., GeoJSON or Shapely)
- ✅ Split imagery into fixed-size patches
- ✅ Convert to PyTorch tensors for ML pipelines
- ✅ Fully Pythonic (no heavy GDAL/C++ dependencies)
- ✅ Fast and async-friendly where possible
📦 Installation
pip install fastarray
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastarray-0.1.1.tar.gz.
File metadata
- Download URL: fastarray-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a9b4098e0a8b67dc26ef5d2745824f328d9c4d43b02d5caef10c32eb11f6a83
|
|
| MD5 |
91486b344c44bee714879b6b75820557
|
|
| BLAKE2b-256 |
aacb60e4357fa1a2f8c891bdf12222668891227880c78f5575afebda1ca79c77
|
File details
Details for the file fastarray-0.1.1-py3-none-any.whl.
File metadata
- Download URL: fastarray-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92d489dae3f639d92bc102b80009e8ca95facd168183ffd2987138759bfa32e0
|
|
| MD5 |
7feed13801904ff550ce5931d8db1e5b
|
|
| BLAKE2b-256 |
93d86b455321ab70d9088028f64324e3dc77a85120ec5908e5bb15285050ebad
|