DEM NaN NoData Small¶
rasterGeoTIFFEPSG:32633tinybundled
A float32 DEM that marks NoData with NaN rather than a sentinel value. NaN propagates through means and comparisons instead of being excluded.
| Property | Value |
|---|---|
| Case ID | dem_nan_nodata_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_nan_nodata_small")
def test_dem_nan_nodata_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 detects NaN-encoded NoData in a float DEM rather than treating NaN as valid elevation.
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 | 110.0 |
| Mean including NoData | 110.0 |
| NoData pixels | 2 |
| Bounds (case CRS) | [500000.0, 4499840.0, 500160.0, 4500000.0] |
Required capabilities¶
loadnodata-checknan-nodata-check
Files¶
- Primary:
dem_nan_nodata_small.tif
Source and license¶
- Source: geocase-synthetic
- License: MIT
Tags¶
delivery:single-file dem geography:utm geotiff product:dem raster
Related cases¶
- DEM Small --
dem_small - Land Cover With Ambiguous Zero --
landcover_ambiguous_zero_small - Water Mask Small --
water_mask_small - Bottom-Up DEM (Positive Y Resolution) --
bottom_up_dem_small - GeoTIFF Int8 Small --
geotiff_int8_small