Skip to content

GeoTIFF Int16 Small

rasterGeoTIFFEPSG:32633tinybundled

A small single-band GeoTIFF stored as signed 16-bit integers. Tests that raster loaders and downstream code preserve medium-range integer dtype semantics without silently widening or converting values.

Pixels of geotiff_int16_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_int16_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_int16_small")
def test_geotiff_int16_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 signed 16-bit integer rasters open with the correct dtype and preserve their declared numeric storage type through simple reads.

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 198.9795918367
Mean including NoData -4.98
NoData pixels 2
Bounds (case CRS) [500000.0, 900.0, 500100.0, 1000.0]

Notes

Purpose

Single-band int16 raster for validating signed integer raster dtype handling.

What to expect

  • CRS is EPSG:32633.
  • One band (int16).
  • NoData is -9999.
  • Pixel values exceed int8 range to make accidental narrowing visible.

Required capabilities

  • load
  • dtype-check
  • nodata-check

Files

Browse this case on GitHub

Source and license

  • Source: geocase-curated
  • License: MIT

Tags

dtype geotiff int16 raster