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.
| 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:
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
uint8bands namedred,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¶
loadmultiband-readband-name-check
Files¶
- Primary:
optical_rgb_small.tif - Notes:
notes.md
Source and license¶
- Source: geocase-synthetic
- License: MIT
Tags¶
delivery:single-file eo geography:utm geotiff optical product:optical raster rgb
Related cases¶
- Multispectral Sentinel-2-like Small --
multispectral_s2_like_small - SAR Dual-Pol Small --
sar_dualpol_small - SAR VV Small --
sar_vv_small - DEM Small --
dem_small - NDVI Small --
ndvi_small