DEM Small¶
rasterGeoTIFFEPSG:32633tinybundled
A tiny single-band float32 digital elevation model with a NaN NoData pixel. Exercises continuous-surface raster handling and the NaN NoData convention.
| Property | Value |
|---|---|
| Case ID | dem_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("dem_small")
def test_dem_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 float32 DEM, preserve its single band, and treat the NaN NoData value correctly during terrain logic.
Risk types covered¶
Expected behavior¶
| Assertion | Expected |
|---|---|
expect_loadable |
yes |
expect_crs |
yes |
expected_epsg |
32633 |
expect_nodata |
yes |
expected_band_count |
1 |
expected_dtype |
float32 |
expected_shape |
[16, 16] |
nodata_convention |
nan |
expected_compression |
deflate |
expected_band_names |
elevation |
Known answer¶
Computed from the actual bytes and gated against them. Grade your own output against these.
| Quantity | Value |
|---|---|
| Mean over valid pixels | 152.2941176471 |
| Mean including NoData | 152.2941176471 |
| NoData pixels | 1 |
| Bounds (case CRS) | [500000.0, 4499840.0, 500160.0, 4500000.0] |
Notes¶
Purpose¶
Elevation baseline for validating float32 continuous-surface handling and NaN NoData semantics.
What to expect¶
- CRS is
EPSG:32633. - One
float32band namedelevation. - 16×16 pixels, DEFLATE compressed.
- NoData is
NaN(one pixel).
Typical checks¶
assert_band_count(src, 1)assert_dtype(src, "float32")assert_nan_nodata(src)
Common failure modes¶
- NaN pixels included in min/max/mean statistics.
- NoData convention assumed to be a numeric sentinel.
Regenerate¶
python scripts/generate_raster_fixtures.py
Required capabilities¶
loadnodata-checknan-nodata-check
Files¶
- Primary:
dem_small.tif - Notes:
notes.md
Source and license¶
- Source: geocase-synthetic
- License: MIT
Tags¶
delivery:single-file dem eo geography:utm geotiff product:dem raster terrain
Related cases¶
- DEM NaN NoData Small --
dem_nan_nodata_small - Multispectral Sentinel-2-like Small --
multispectral_s2_like_small - Water Mask Small --
water_mask_small - NDVI Scaled Int16 Small --
ndvi_scaled_int16_small - NDVI Small --
ndvi_small