easy-eo 0.2.0__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. {easy_eo-0.2.0 → easy_eo-0.3.1}/.gitignore +6 -0
  2. easy_eo-0.3.1/PKG-INFO +369 -0
  3. easy_eo-0.3.1/README.md +307 -0
  4. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/__init__.py +1 -1
  5. easy_eo-0.3.1/eeo/_optional.py +152 -0
  6. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/core/adapters/base.py +3 -1
  7. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/core/adapters/numpy.py +2 -1
  8. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/core/adapters/rasterio.py +3 -2
  9. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/core/core.py +8 -7
  10. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/core/core.pyi +32 -16
  11. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/core/exceptions.py +7 -3
  12. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/core/loader.py +3 -2
  13. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/core/types.py +6 -0
  14. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/datasets/_registry.py +42 -3
  15. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/datasets/_samples.py +6 -0
  16. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/ops/merge.py +3 -2
  17. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/preprocessing/clip.py +4 -3
  18. easy_eo-0.3.1/eeo/viz/plot.py +1187 -0
  19. {easy_eo-0.2.0 → easy_eo-0.3.1}/pyproject.toml +4 -1
  20. easy_eo-0.2.0/PKG-INFO +0 -176
  21. easy_eo-0.2.0/README.md +0 -117
  22. easy_eo-0.2.0/eeo/_optional.py +0 -65
  23. easy_eo-0.2.0/eeo/viz/plot.py +0 -640
  24. {easy_eo-0.2.0 → easy_eo-0.3.1}/LICENSE +0 -0
  25. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/_show_versions.py +0 -0
  26. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/analysis/__init__.py +0 -0
  27. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/analysis/indices.py +0 -0
  28. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/analysis/stats.py +0 -0
  29. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/common.py +0 -0
  30. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/core/__init__.py +0 -0
  31. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/core/adapters/__init__.py +0 -0
  32. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/core/decorators.py +0 -0
  33. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/core/plugins.py +0 -0
  34. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/datasets/__init__.py +0 -0
  35. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/datasets/_cache.py +0 -0
  36. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/io/__init__.py +0 -0
  37. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/io/stac.py +0 -0
  38. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/io/xarray.py +0 -0
  39. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/ops/__init__.py +0 -0
  40. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/ops/algebra.py +0 -0
  41. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/preprocessing/__init__.py +0 -0
  42. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/preprocessing/normalize.py +0 -0
  43. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/preprocessing/reproject.py +0 -0
  44. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/preprocessing/resample.py +0 -0
  45. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/py.typed +0 -0
  46. {easy_eo-0.2.0 → easy_eo-0.3.1}/eeo/viz/__init__.py +0 -0
@@ -21,6 +21,12 @@ others/
21
21
  # Docs
22
22
  docs/build/
23
23
 
24
+ # Generated by the dependency-audit, release, and linkcheck workflows
25
+ # (and by running any of them locally)
26
+ requirements-audit.txt
27
+ .smoke-venv/
28
+ .linkcheck/
29
+
24
30
  # Tests
25
31
  .pytest_cache/
26
32
  .ruff_cache/
easy_eo-0.3.1/PKG-INFO ADDED
@@ -0,0 +1,369 @@
1
+ Metadata-Version: 2.5
2
+ Name: easy-eo
3
+ Version: 0.3.1
4
+ Summary: A lightweight Earth Observation utilities library for chainable raster operations
5
+ Project-URL: Homepage, https://github.com/tommy-burns/easy-eo
6
+ Project-URL: Repository, https://github.com/tommy-burns/easy-eo
7
+ Project-URL: Documentation, https://easy-eo.readthedocs.io
8
+ Project-URL: Issues, https://github.com/tommy-burns/easy-eo/issues
9
+ Author: Thomas Burns Botchwey
10
+ License: MIT License
11
+
12
+ Copyright (c) 2025 Thomas Burns Botchwey
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
31
+ License-File: LICENSE
32
+ Keywords: earth observation,gis,raster,remote sensing
33
+ Classifier: Development Status :: 3 - Alpha
34
+ Classifier: Intended Audience :: Science/Research
35
+ Classifier: License :: OSI Approved :: MIT License
36
+ Classifier: Programming Language :: Python :: 3
37
+ Classifier: Programming Language :: Python :: 3.10
38
+ Classifier: Programming Language :: Python :: 3.11
39
+ Classifier: Programming Language :: Python :: 3.12
40
+ Classifier: Programming Language :: Python :: 3.13
41
+ Classifier: Programming Language :: Python :: 3.14
42
+ Classifier: Topic :: Scientific/Engineering :: GIS
43
+ Classifier: Typing :: Typed
44
+ Requires-Python: >=3.10
45
+ Requires-Dist: geopandas<2,>=1.1
46
+ Requires-Dist: matplotlib>=3.8
47
+ Requires-Dist: numpy<3,>=1.26
48
+ Requires-Dist: rasterio<2,>=1.4
49
+ Provides-Extra: dev
50
+ Requires-Dist: mypy>=1.10; extra == 'dev'
51
+ Requires-Dist: pre-commit>=3.7; extra == 'dev'
52
+ Requires-Dist: pytest-cov>=5.0; extra == 'dev'
53
+ Requires-Dist: pytest>=8.0; extra == 'dev'
54
+ Requires-Dist: ruff>=0.6; extra == 'dev'
55
+ Provides-Extra: stac
56
+ Requires-Dist: planetary-computer<2,>=1.0; extra == 'stac'
57
+ Requires-Dist: pystac-client<1,>=0.8; extra == 'stac'
58
+ Provides-Extra: xarray
59
+ Requires-Dist: rioxarray<1,>=0.17; extra == 'xarray'
60
+ Requires-Dist: xarray>=2024.7; extra == 'xarray'
61
+ Description-Content-Type: text/markdown
62
+
63
+ # Easy-EO
64
+
65
+ <p align="center">
66
+ <img src="https://raw.githubusercontent.com/Tommy-Burns/easy-eo/main/.github/assets/eeo_logo.png" alt="Easy-EO logo" width="200">
67
+ </p>
68
+
69
+ | | |
70
+ | :-- | :-- |
71
+ | **Install** | [![PyPI][pypi-badge]][pypi] [![conda-forge][conda-badge]][conda] [![Python versions][pyversions-badge]][pypi] [![Platforms][platforms-badge]][ci] |
72
+ | **Build & quality** | [![CI][ci-badge]][ci] [![Latest deps][latest-deps-badge]][latest-deps] [![Coverage][codecov-badge]][codecov] [![Ruff][ruff-badge]][ruff] [![Checked with mypy][mypy-badge]][mypy] |
73
+ | **Security** | [![CodeQL][codeql-badge]][codeql] [![OpenSSF Scorecard][scorecard-badge]][scorecard] |
74
+ | **Project** | [![Documentation][docs-badge]][docs] [![License: MIT][license-badge]][license] |
75
+
76
+ [pypi]: https://pypi.org/project/easy-eo/
77
+ [pypi-badge]: https://img.shields.io/pypi/v/easy-eo.svg
78
+ [conda]: https://anaconda.org/conda-forge/easy-eo
79
+ [conda-badge]: https://img.shields.io/conda/vn/conda-forge/easy-eo.svg
80
+ [pyversions-badge]: https://img.shields.io/pypi/pyversions/easy-eo.svg
81
+ [platforms-badge]: https://img.shields.io/badge/platform-linux%20%7C%20macOS%20%7C%20windows-lightgrey.svg
82
+ [ci]: https://github.com/Tommy-Burns/easy-eo/actions/workflows/ci.yml
83
+ [ci-badge]: https://github.com/Tommy-Burns/easy-eo/actions/workflows/ci.yml/badge.svg
84
+ [latest-deps]: https://github.com/Tommy-Burns/easy-eo/actions/workflows/latest-deps.yml
85
+ [latest-deps-badge]: https://github.com/Tommy-Burns/easy-eo/actions/workflows/latest-deps.yml/badge.svg
86
+ [codecov]: https://codecov.io/gh/Tommy-Burns/easy-eo
87
+ [codecov-badge]: https://codecov.io/gh/Tommy-Burns/easy-eo/branch/main/graph/badge.svg
88
+ [ruff]: https://github.com/astral-sh/ruff
89
+ [ruff-badge]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
90
+ [mypy]: https://mypy-lang.org/
91
+ [mypy-badge]: https://img.shields.io/badge/mypy-checked-2a6db2.svg
92
+ [codeql]: https://github.com/Tommy-Burns/easy-eo/actions/workflows/codeql.yml
93
+ [codeql-badge]: https://github.com/Tommy-Burns/easy-eo/actions/workflows/codeql.yml/badge.svg
94
+ [scorecard]: https://scorecard.dev/viewer/?uri=github.com/Tommy-Burns/easy-eo
95
+ [scorecard-badge]: https://api.scorecard.dev/projects/github.com/Tommy-Burns/easy-eo/badge
96
+ [docs]: https://easy-eo.readthedocs.io/en/latest/?badge=latest
97
+ [docs-badge]: https://readthedocs.org/projects/easy-eo/badge/?version=latest
98
+ [license]: https://github.com/Tommy-Burns/easy-eo/blob/main/LICENSE
99
+ [license-badge]: https://img.shields.io/github/license/Tommy-Burns/easy-eo
100
+
101
+
102
+ Easy-EO is a lightweight, extensible Python library for raster-based Earth
103
+ Observation (EO) analysis: chainable raster processing, band algebra, spectral indices,
104
+ and visualization, in a few readable lines instead of dealing with complex boilerplate code.
105
+
106
+ ## From satellite archive to NDVI map
107
+
108
+ ```python
109
+ import eeo
110
+
111
+ results = eeo.stac_search(
112
+ "sentinel-2-l2a",
113
+ bbox=(11.0, 46.5, 11.2, 46.7), # area of interest, WGS 84 lon/lat
114
+ datetime="2023-06-01/2023-08-31",
115
+ cloud_cover=20,
116
+ limit=1,
117
+ )
118
+ scene = results[0].load(["B04", "B08"]) # reads only the area of interest
119
+ ndvi = scene.ndvi(red="B04", nir="B08")
120
+ ndvi.plot_raster()
121
+ ```
122
+
123
+ That is the whole workflow - no scene downloads, no GDAL wrangling. The search
124
+ queries [Microsoft Planetary Computer](https://planetarycomputer.microsoft.com/)
125
+ (any STAC catalog works, you have to pass `catalog="your stac catalog"`), and the load streams just the window covering your
126
+ bounding box over HTTP: 14 MB out of a 240 MB Sentinel-2 tile, in a few seconds.
127
+
128
+ The `stac_search` needs the STAC extra - `pip install "easy-eo[stac]"`, or the [conda equivalent](#installation). If you prefer to start offline, jump to the [hosted sample dataset](#quick-example), which needs no network after the first call.
129
+
130
+ ---
131
+
132
+ ## Features
133
+
134
+ | | What you get | Guide |
135
+ | --- | --- | --- |
136
+ | **Data access** | `stac_search()` over any STAC catalog, loading only your area of interest over HTTP; GeoTIFF/COG and anything else GDAL reads; a hosted sample dataset one call away | [Satellite data](https://easy-eo.readthedocs.io/en/latest/user_guide/loading_satellite_data.html) · [Sample data](https://easy-eo.readthedocs.io/en/latest/user_guide/sample_data.html) |
137
+ | **Spectral indices** | `ndvi`, `ndwi`, `ndmi`, `ndbi`, `evi`, `savi`, plus `normalized_difference` for anything else - all chainable and float32 | [Spectral indices](https://easy-eo.readthedocs.io/en/latest/user_guide/spectral_indices.html) |
138
+ | **Band algebra** | `add`, `subtract`, `multiply`, `divide`, `power`, `sqrt`, `log`, `absolute`, and the matching operators | [Operations](https://easy-eo.readthedocs.io/en/latest/user_guide/ops.html) |
139
+ | **Preprocessing** | Clip to a bounding box or a vector, resample, reproject, mosaic, stack, normalize (min-max, percentile, z-score) | [Preprocessing](https://easy-eo.readthedocs.io/en/latest/user_guide/preprocessing.html) |
140
+ | **Named bands** | Address any band as `"red"` or `"nir"` wherever a 1-based index works; names survive a GeoTIFF round-trip | [Naming bands](https://easy-eo.readthedocs.io/en/latest/user_guide/band_names.html) |
141
+ | **Statistics** | Per-band min/max/mean/percentile with their pixel locations, and value extraction at a coordinate | [Statistical locations](https://easy-eo.readthedocs.io/en/latest/user_guide/statistical_locations.html) |
142
+ | **Visualization** | Single bands, RGB composites, histograms, and map-plus-histogram views, read at display resolution | [Visualization](https://easy-eo.readthedocs.io/en/latest/user_guide/visualization.html) |
143
+ | **Predictable nodata & dtype** | One written-down contract every operation follows: mask before compute, nodata stays contagious, fractional results are float32 | [Nodata & dtype](https://easy-eo.readthedocs.io/en/latest/user_guide/nodata_and_dtype.html) |
144
+ | **Ecosystem interop** | `to_xarray()` / `from_xarray()` in both directions; NumPy and Rasterio backends behind one interface | [xarray interop](https://easy-eo.readthedocs.io/en/latest/user_guide/xarray_interop.html) · [Backends](https://easy-eo.readthedocs.io/en/latest/backends.html) |
145
+ | **Typed and tested** | Ships `py.typed`, 950+ tests, ~95% coverage, checked on Python 3.10-3.14 across Linux, macOS and Windows | [Contributing](https://github.com/Tommy-Burns/easy-eo/blob/main/CONTRIBUTING.md) |
146
+
147
+ ---
148
+
149
+ ## Before and after
150
+
151
+ One ordinary task: clip a 4-band scene to an area of interest held in a vector
152
+ file, compute NDVI, save it as a GeoTIFF. Both versions below run as written,
153
+ against the same [hosted sample dataset](https://easy-eo.readthedocs.io/en/latest/user_guide/sample_data.html)
154
+ - a 1024x1024 Sentinel-2 subset and a boundary polygon - so you can paste
155
+ either one and watch it work.
156
+
157
+ Here it is in raw Rasterio, GeoPandas and NumPy, with Easy-EO not installed at
158
+ all -
159
+
160
+ ```python
161
+ import geopandas as gpd
162
+ import numpy as np
163
+ import rasterio
164
+ from rasterio.mask import mask
165
+
166
+ BASE = "https://github.com/Tommy-Burns/easy-eo/releases/download/sample-data-v1/"
167
+
168
+ with rasterio.open(BASE + "sentinel2_small_cog.tif") as src:
169
+ aoi = gpd.read_file(BASE + "roi.gpkg").to_crs(src.crs)
170
+ clipped, transform = mask(src, aoi.geometry.values, crop=True)
171
+ bands = {name: i for i, name in enumerate(src.descriptions)}
172
+ nodata = src.nodata
173
+ profile = src.profile
174
+
175
+ red = clipped[bands["red"]].astype("float32")
176
+ nir = clipped[bands["nir"]].astype("float32")
177
+
178
+ valid = (red != nodata) & (nir != nodata)
179
+ total = nir + red
180
+ ndvi = np.where(valid & (total != 0), (nir - red) / np.where(total == 0, 1, total), 0.0)
181
+ ndvi = np.where(valid, ndvi, np.nan).astype("float32")
182
+
183
+ profile.update(
184
+ count=1, dtype="float32", nodata=np.nan,
185
+ height=ndvi.shape[0], width=ndvi.shape[1], transform=transform,
186
+ )
187
+ with rasterio.open("ndvi.tif", "w", **profile) as dst:
188
+ dst.write(ndvi, 1)
189
+ ```
190
+
191
+ -- and in Easy-EO, where `load_sample_dataset()` fetches the same two files and
192
+ caches them:
193
+
194
+ ```python
195
+ import eeo
196
+ from eeo.datasets import load_sample_dataset
197
+
198
+ sd = load_sample_dataset()
199
+
200
+ (
201
+ eeo.load_raster(sd.sentinel2_cog_stacked)
202
+ .clip_raster_with_vector(sd.boundary)
203
+ .ndvi(red="red", nir="nir")
204
+ .save_raster("ndvi.tif")
205
+ )
206
+ ```
207
+
208
+ Both blocks produce **byte-identical output** - same shape, CRS, transform,
209
+ nodata, and every one of the pixel values, including all pixels the clip
210
+ masks away (approx. a quarter of the image).
211
+ So the point is not the line count. It is that Rasterio makes you take four decisions by hand,
212
+ each one a chance to be quietly wrong: reprojecting the AOI into the raster's CRS
213
+ (the sample boundary is lon/lat, the scene is UTM), mapping band names to indices,
214
+ masking nodata before the arithmetic, and rebuilding the output profile. Drop just the mask and NDVI comes out as `0.0` across the clipped-away quarter of the image - a value that looks like bare
215
+ ground in your statistics and your plot, not like missing data.
216
+
217
+ Easy-EO applies those same rules for you, consistently, on every operation. They
218
+ are written down in the [nodata and dtype contract](https://easy-eo.readthedocs.io/en/latest/user_guide/nodata_and_dtype.html)
219
+ and each one is backed by tests.
220
+
221
+ ---
222
+
223
+ ## What's next
224
+
225
+ Easy-EO is built around one scene at a time, and everything above works that
226
+ way today. These are the next capabilities, in the order they are being built:
227
+
228
+ | Coming | What it unlocks |
229
+ | --- | --- |
230
+ | **Block-wise execution** | Pixel-wise operations stream window by window instead of holding whole arrays, so a chain runs in a bounded memory footprint. Today, loading is read-free and clipping is windowed, but an operation like `ndvi()` materialises the bands it touches. |
231
+ | **Lazy backend** (`easy-eo[lazy]`) | An xarray/dask-backed adapter behind the existing interface: chains on rasters larger than RAM, and COGs read straight over HTTP, with no change to your code beyond the loader call. |
232
+ | **Time series** (`EEOTimeSeries`) | Multi-date stacks as a first-class object - map any existing operation across timesteps, reduce to cloud-free median composites, pull per-pixel trajectories. STAC search results are already ordered and timestamped, ready to become one. |
233
+ | **Citable releases** | A JOSS paper and Zenodo DOI, so the library can be cited in published work. |
234
+
235
+ **Already using xarray?** You do not have to choose. `to_xarray()` and `from_xarray()` convert in both directions, so you can clip and compute indices
236
+ here, hand the result to dask or anything else in the xarray ecosystem, and come back - which is also how to work past a single machine's memory today.
237
+ See the [xarray interop guide](https://easy-eo.readthedocs.io/en/latest/user_guide/xarray_interop.html).
238
+
239
+ ---
240
+
241
+ ## Installation
242
+
243
+ Python 3.10 or newer, from either package manager:
244
+
245
+ ```bash
246
+ pip install easy-eo
247
+ ```
248
+
249
+ ```bash
250
+ conda install -c conda-forge easy-eo
251
+ ```
252
+
253
+ That is everything you need for the core: raster I/O, algebra, indices,
254
+ preprocessing and plotting. Two heavier integrations are kept separate, so you
255
+ only install them if you use them:
256
+
257
+ | Adds | pip | conda |
258
+ | --- | --- | --- |
259
+ | `stac_search()` and loading scenes from STAC catalogs | `pip install "easy-eo[stac]"` | `conda install -c conda-forge easy-eo pystac-client planetary-computer` |
260
+ | `to_xarray()` / `from_xarray()` | `pip install "easy-eo[xarray]"` | `conda install -c conda-forge easy-eo xarray rioxarray` |
261
+
262
+ pip extras compose - `pip install "easy-eo[stac,xarray]"` installs both. conda
263
+ has no concept of extras, so `conda install "easy-eo[stac]"` is not a valid
264
+ command; the same packages are simply installed by name, as above.
265
+
266
+ **Use one package manager, not both.** If Easy-EO came from conda, install the
267
+ extras from conda too. conda's solver knows nothing about pip-installed files,
268
+ so a later `conda install` or `conda update` can overwrite them or leave a
269
+ second copy of a shared dependency in the environment. Every extra dependency
270
+ is on conda-forge, so there is no reason to mix.
271
+
272
+ Without an extra installed, the features that need it raise a
273
+ `MissingDependencyError` telling you exactly what to install - nothing fails
274
+ silently at import time.
275
+
276
+ ## Quick Example
277
+ ```python
278
+ from eeo import load_raster
279
+
280
+ ds_nir = load_raster("path/to/nir.tif")
281
+ ds_red = load_raster("path/to/red.tif")
282
+
283
+ # Chainable example: clip -> resample -> compute NDVI -> multiply
284
+ result = (
285
+ ds_nir.clip_raster_with_bbox((0, 0, 1000, 1000))
286
+ .resample(scale_factor=2)
287
+ .normalized_difference(ds_red)
288
+ .multiply(100)
289
+ )
290
+ ```
291
+
292
+ ***Or try with a hosted sample data***
293
+ ```python
294
+ from eeo.datasets import load_sample_dataset
295
+ from eeo import load_raster
296
+
297
+ sd = load_sample_dataset()
298
+
299
+ scene = load_raster(sd.sentinel2_cog_stacked) # red, green, blue, nir bands
300
+
301
+ ndvi = scene.ndvi(red="red", nir="nir")
302
+ ndvi.plot_raster()
303
+ ```
304
+
305
+ ## Tutorials
306
+
307
+ Sixteen runnable notebooks live in [`examples/`](https://github.com/Tommy-Burns/easy-eo/blob/main/examples/README.md), from first
308
+ install through to complete analyses (flood mapping, drought stress, land cover,
309
+ terrain). Each one opens in Colab with no local setup — the first cell installs
310
+ Easy-EO when it detects Colab:
311
+
312
+ | | |
313
+ | --- | --- |
314
+ | [Quickstart: NDVI](https://github.com/Tommy-Burns/easy-eo/blob/main/examples/00_getting_started/02_quickstart_ndvi.ipynb) — open a scene, compute an index, plot it | [![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Tommy-Burns/easy-eo/blob/main/examples/00_getting_started/02_quickstart_ndvi.ipynb) |
315
+ | [Search and load from STAC](https://github.com/Tommy-Burns/easy-eo/blob/main/examples/02_data_access/02_stac_search_and_load.ipynb) — find real scenes, read them over HTTP | [![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Tommy-Burns/easy-eo/blob/main/examples/02_data_access/02_stac_search_and_load.ipynb) |
316
+ | [Flood mapping with NDWI](https://github.com/Tommy-Burns/easy-eo/blob/main/examples/03_real_world/01_flood_mapping_ndwi.ipynb) — Pakistan 2022, before/after, area affected | [![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Tommy-Burns/easy-eo/blob/main/examples/03_real_world/01_flood_mapping_ndwi.ipynb) |
317
+
318
+ The full index, including what each notebook covers, is in
319
+ [`examples/README.md`](https://github.com/Tommy-Burns/easy-eo/blob/main/examples/README.md) and in the
320
+ [tutorials page](https://easy-eo.readthedocs.io/en/latest/tutorials.html) of the
321
+ documentation.
322
+
323
+ ---
324
+
325
+ ## Gallery
326
+
327
+ Every image below is straight out of an Easy-EO plotting call on the sample
328
+ dataset, with the library's own defaults - no touch-ups. Regenerate them all
329
+ with `python scripts/build_gallery.py`.
330
+
331
+ | | |
332
+ | --- | --- |
333
+ | <img src="https://raw.githubusercontent.com/Tommy-Burns/easy-eo/main/.github/assets/gallery/composite_true_colour.jpg" alt="True colour composite of a Sentinel-2 scene"> | <img src="https://raw.githubusercontent.com/Tommy-Burns/easy-eo/main/.github/assets/gallery/composite_false_colour.jpg" alt="False colour composite, vegetation in red"> |
334
+ | `scene.plot_composite(["red", "green", "blue"])` | `scene.plot_composite(["nir", "red", "green"])` |
335
+ | <img src="https://raw.githubusercontent.com/Tommy-Burns/easy-eo/main/.github/assets/gallery/index_ndvi.jpg" alt="NDVI map on a red-yellow-green colour scale"> | <img src="https://raw.githubusercontent.com/Tommy-Burns/easy-eo/main/.github/assets/gallery/dem_terrain.jpg" alt="Copernicus DEM elevation map"> |
336
+ | `scene.ndvi(red="red", nir="nir", name="NDVI").plot_raster(cmap="RdYlGn")` | `dem.plot_raster(cmap="Spectral_r")` - the same call on a DEM |
337
+ | <img src="https://raw.githubusercontent.com/Tommy-Burns/easy-eo/main/.github/assets/gallery/histogram_bands.png" alt="Value distribution of each of the four bands"> | <img src="https://raw.githubusercontent.com/Tommy-Burns/easy-eo/main/.github/assets/gallery/clip_ndvi_histogram.png" alt="NDVI clipped to a hexagonal boundary beside its histogram"> |
338
+ | `scene.plot_histogram()` - every band at once | `clipped.plot_raster_with_histogram(cmap="RdYlGn")` |
339
+
340
+ Bands are addressed by name throughout (`"red"`, `"nir"`) because the sample
341
+ carries band descriptions; a 1-based index works anywhere a name does.
342
+
343
+ ## Supported Backends
344
+ | Backend | Description |
345
+ |----------|------------------------------------------------------|
346
+ | NumPy | Fast, in-memory arrays without I/O |
347
+ | Rasterio | Full geospatial support (CRS, transform, resampling) |
348
+
349
+
350
+ ## Documentation
351
+
352
+ 📚 Full documentation is available at:
353
+
354
+ 👉 [Easy-EO Documentation](https://easy-eo.readthedocs.io/en/latest/index.html)
355
+
356
+ ## Project Status
357
+ 🚧 Active development
358
+ The API is stabilizing but may change before v1.0.
359
+
360
+ ## Contributing
361
+ Contributions are welcome!
362
+ - Bug reports
363
+ - Feature requests
364
+ - Documentation improvements
365
+
366
+ Please open an issue or pull request on GitHub.
367
+
368
+ ## License
369
+ MIT License © 2025 Thomas Burns Botchwey