Skip to content

GeoTIFF Multi-Band Small

rasterGeoTIFFEPSG:32633tinybundled

A three-band GeoTIFF with NoData in every band. Exercises band-order preservation and per-band NoData handling on multiband raster reads.

Pixels of geotiff_multiband_small, a 10x10 raster, with NoData in magenta
10x10 px. Rendered from the case's actual pixels, contrast-stretched for display; NoData is shown in magenta.
Property Value
Case ID geotiff_multiband_small
Category raster
Format GeoTIFF
CRS EPSG:32633
Location Equator, Gulf of Guinea (synthetic) — 15.00°E, 0.01°N → 15.00°E, 0.01°N
Test tier unit
Size class tiny
Storage class bundled
Redistributable yes
Loader rasterio
Status validated

Use this case

import pytest


@pytest.mark.geocase_case("geotiff_multiband_small")
def test_geotiff_multiband_small(geocase_case) -> None:
    data = geocase_case.load()
    assert data is not None

Use GeoCase in your tests

Install the complete set of vector, raster, and NetCDF dependencies:

pip install "geocase[all]"

View GeoCase on PyPI.

What this case checks

Confirm that GeoCase can open a small multi-band raster, preserve its declared band count, and expose each band as distinct pixel data.

Risk types covered

Expected behavior

Assertion Expected
expect_loadable yes
expect_crs yes
expected_epsg 32633
expect_nodata yes
expected_shape [10, 10]

Known answer

Computed from the actual bytes and gated against them. Grade your own output against these.

Quantity Value
Mean over valid pixels 149.9489795918
Mean including NoData -53.03
NoData pixels 6
Bounds (case CRS) [500000.0, 900.0, 500100.0, 1000.0]

Notes

Purpose

Three-band raster baseline for validating multi-band read behavior.

What to expect

  • CRS is EPSG:32633.
  • Three bands (float32).
  • NoData is set to -9999 and present in all bands.
  • Each band contains different values so band order mistakes are visible.

Typical checks

  • assert_band_count(src, 3)
  • assert_dtype(src, "float32")
  • assert_nodata_value(src, -9999)
  • src.read(1), src.read(2), and src.read(3) return distinct arrays

Common failure modes

  • Multi-band rasters read as a single band.
  • Band order swapped during processing.
  • NoData lost in one or more bands.

Required capabilities

  • load
  • multiband-read
  • nodata-check

Files

Browse this case on GitHub

Source and license

  • Source: geocase-curated
  • License: MIT

Tags

bands geotiff multiband raster