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.
| 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:
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¶
dtype/coerciondtype/range_assumptionnodata/ignored
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
int8range to make accidental narrowing visible.
Required capabilities¶
loaddtype-checknodata-check
Files¶
- Primary:
int16_sample.tif - Notes:
notes.md
Source and license¶
- Source: geocase-curated
- License: MIT
Tags¶
dtype geotiff int16 raster
Related cases¶
- GeoTIFF Float64 Small --
geotiff_float64_small - GeoTIFF Int32 Small --
geotiff_int32_small - GeoTIFF Int8 Small --
geotiff_int8_small - Bottom-Up DEM (Positive Y Resolution) --
bottom_up_dem_small - COG Multispectral Small --
cog_multispectral_small