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.
| 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:
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
-9999and 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), andsrc.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¶
loadmultiband-readnodata-check
Files¶
- Primary:
multiband_sample.tif - Notes:
notes.md
Source and license¶
- Source: geocase-curated
- License: MIT
Tags¶
bands geotiff multiband raster
Related cases¶
- Multispectral Sentinel-2-like Small --
multispectral_s2_like_small - COG Multispectral Small --
cog_multispectral_small - Optical RGB Small --
optical_rgb_small - SAR Dual-Pol Small --
sar_dualpol_small - Bottom-Up DEM (Positive Y Resolution) --
bottom_up_dem_small