Skip to content

Optical RGB Small

rasterGeoTIFFEPSG:32633tinybundled

A tiny three-band uint8 optical RGB scene. Exercises basic true-colour raster handling: band count, dtype, and explicit band naming.

Pixels of optical_rgb_small, a 16x16 raster, with NoData in magenta
3 bands, 16x16 px, uint8. Rendered from the case's actual pixels, contrast-stretched for display; NoData is shown in magenta.
Property Value
Case ID optical_rgb_small
Category raster
Format GeoTIFF
CRS EPSG:32633
Location Southern Italy / Sicily (synthetic, UTM 33N) — 15.00°E, 40.65°N → 15.00°E, 40.65°N
Test tier integration
Size class tiny
Storage class bundled
Redistributable yes
Loader rasterio
Status validated

Use this case

import pytest


@pytest.mark.geocase_case("optical_rgb_small")
def test_optical_rgb_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 GeoCase can open a small RGB optical raster and preserve its three uint8 bands and their red/green/blue ordering.

Risk types covered

Expected behavior

Assertion Expected
expect_loadable yes
expect_crs yes
expected_epsg 32633
expected_band_count 3
expected_dtype uint8
expected_shape [16, 16]
expected_compression deflate
expected_band_names red, green, blue

Known answer

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

Quantity Value
NoData pixels 0
Bounds (case CRS) [500000.0, 4499840.0, 500160.0, 4500000.0]

Notes

Purpose

True-colour optical baseline for validating multi-band uint8 raster handling.

What to expect

  • CRS is EPSG:32633.
  • Three uint8 bands named red, green, blue.
  • 16×16 pixels, DEFLATE compressed.
  • No NoData value.

Typical checks

  • assert_band_count(src, 3)
  • assert_dtype(src, "uint8")
  • assert_band_names(src, ["red", "green", "blue"])

Common failure modes

  • RGB bands collapsed to a single band.
  • Band order swapped during processing.
  • dtype promoted to a wider integer type.

Regenerate

python scripts/generate_raster_fixtures.py

Required capabilities

  • load
  • multiband-read
  • band-name-check

Files

Browse this case on GitHub

Source and license

  • Source: geocase-synthetic
  • License: MIT

Tags

delivery:single-file eo geography:utm geotiff optical product:optical raster rgb