GeoTIFF NoData Small Shifted¶
A copy of the small NoData GeoTIFF shifted exactly one pixel east while preserving CRS, resolution, band structure, and pixel values. Useful for testing whether raster alignment logic recognizes grids that are aligned on the same pixel lattice but have different extents.
| Property | Value |
|---|---|
| Case ID | geotiff_nodata_small_shifted |
| Category | raster |
| Format | GeoTIFF |
| CRS | EPSG:32633 |
| Location | Central Europe (synthetic, UTM 33N) — 15.01°E, 50.55°N → 15.16°E, 50.64°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_nodata_small_shifted")
def test_geotiff_nodata_small_shifted(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¶
Expose alignment helpers that require identical extents instead of recognizing rasters that share the same pixel lattice with an integer-pixel offset.
Risk types covered¶
scaling/pixel_lattice_misclassificationtransform/alignment_too_stricttransform/shifted_origin
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 | 48.0787352901 |
| Mean including NoData | -152.8628394157 |
| NoData pixels | 2 |
| Bounds (case CRS) | [501000.0, 5600000.0, 511000.0, 5610000.0] |
Notes¶
This fixture is a one-pixel eastward shift of geotiff_nodata_small. It keeps
resolution, CRS, band count, and nodata settings unchanged, but moves the
origin by one pixel so alignment logic can distinguish exact-equality checks
from true pixel-lattice compatibility.
Required capabilities¶
loadaffine-checkalignment-check
Files¶
- Primary:
nodata_sample_shifted.tif - Notes:
notes.md
Source and license¶
- Source: geocase-curated
- License: MIT
Tags¶
affine_transform alignment geotiff nodata raster
Related cases¶
- GeoTIFF NoData Small --
geotiff_nodata_small - Hole Center NoData Raster --
hole_center_nodata - Land Cover With Ambiguous Zero --
landcover_ambiguous_zero_small - Nodata Only (One Sentinel, North-Up, Unrotated) --
nodata_only_dem_small - All Valid Rectangular Raster --
all_valid_rectangular