GeoTIFF Int8 Small¶
rasterGeoTIFFEPSG:32633tinybundled
A small single-band GeoTIFF stored as signed 8-bit integers. Tests that raster loaders and downstream code preserve narrow integer dtype semantics rather than coercing values to floating point implicitly.
| Property | Value |
|---|---|
| Case ID | geotiff_int8_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_int8_small")
def test_geotiff_int8_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 8-bit integer rasters open with the correct dtype and preserve their declared numeric storage type through simple reads.
Risk types covered¶
dtype/coerciondtype/overflowfailure_mode/consumernodata/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 | -6.3775510204 |
| Mean including NoData | -8.23 |
| NoData pixels | 2 |
| Bounds (case CRS) | [500000.0, 900.0, 500100.0, 1000.0] |
Notes¶
Purpose¶
Single-band int8 raster for validating narrow signed integer dtype handling.
What to expect¶
- CRS is
EPSG:32633. - One band (
int8). - NoData is
-99. - Pixel values stay within the signed 8-bit range.
Required capabilities¶
loaddtype-checknodata-check
Files¶
- Primary:
int8_sample.tif - Notes:
notes.md
Source and license¶
- Source: geocase-curated
- License: MIT
Tags¶
dtype geotiff int8 raster
Related cases¶
- GeoTIFF Float64 Small --
geotiff_float64_small - GeoTIFF Int16 Small --
geotiff_int16_small - GeoTIFF Int32 Small --
geotiff_int32_small - Bottom-Up DEM (Positive Y Resolution) --
bottom_up_dem_small - DEM NaN NoData Small --
dem_nan_nodata_small