Skip to content

GeoTIFF Int32 Small

rasterGeoTIFFEPSG:32633tinybundled

A small single-band GeoTIFF stored as signed 32-bit integers. Tests that raster loaders and downstream code preserve wide integer dtype semantics rather than truncating values to smaller types.

Pixels of geotiff_int32_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_int32_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_int32_small")
def test_geotiff_int32_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 32-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 5007242.959183673
Mean including NoData 4906898.12
NoData pixels 2
Bounds (case CRS) [500000.0, 900.0, 500100.0, 1000.0]

Notes

Purpose

Single-band int32 raster for validating wide integer raster dtype handling.

What to expect

  • CRS is EPSG:32633.
  • One band (int32).
  • NoData is -9999.
  • Pixel values exceed int16 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 int32 raster