Skip to main content

Cases

Each case is one lesson: what is wrong with a file and how to read it correctly. status is understood when the case gives a working read, open when something is not yet determined, fixed-upstream when current software handles it.

31 cases: 25 understood, 4 open, 2 fixed-upstream.

Costume is the storage form of the grid, from the costumes table in regular-in-what: what was stored versus what the grid really is. none means the data is not a grid.

Costumes: A 3, B 2, C 14, D 4, E 8, E2 2, H 1, none 5.

case costume status findings summary
2007: rgdal crashed R on the first four problem files, and the workaround wrote TIFFs named .nc D C none fixed-upstream OPEN_FAILED AXES_X_BEFORE_Y Y_ASCENDING The origin of this archive: R 2.5.0 with rgdal 0.5-9 and GDAL 1.4.0 crashed on GDAL.open() of four netCDF files; gdal_translate to *.nc names produced GeoTIFFs, misoriented and off by a cell.
5D netCDF test file: GDAL band metadata for more than one extra dimension C fixed-upstream A tiny 5D variable a(c5, c4, c3, y, x) built in 2009 to test a GDAL netCDF patch; old GDAL labelled bands with wrong c3/c4 values, GDAL 3.14 labels all 12 bands correctly.
AAD MODIS 20-day fast ice: headerless images stored south-up, geolocated by raw lat/lon arrays that are a 2 km cylindrical equal-area grid A E understood RAW_NO_HEADER GRID_2D_LONLAT_ONLY GRID_CRYPTIC_CURVILINEAR LONLAT_2D_SEPARABLE Y_ASCENDING ROW_ORDER_INCONSISTENT DOC_FILE_MISSING DOC_DIMS_ONLY 4300 x 425 byte images with no header; the separate float32 lats.img/lons.img are a regular 2000 m grid in WGS84 Lambert cylindrical equal-area (standard parallel 65 S) to within 0.42 m, rows stored south to north; the README omits byte order and row order, never mentions coastmask.img (Int16, stored north to south), and promises a .gpd file that is not there.
ACC frontal indices on the AVISO Mercator grid, with a duplicated seam and no time coordinate D understood LAT_MERCATOR_SPACED Y_ASCENDING LON_0_360 Weekly Southern Ocean front classes 1992-2009 on the Southern Ocean part of the old AVISO Mercator grid; lat is Mercator-spaced, lon 0..360 repeats the seam column, time is split into year/month/day variables, and GDAL’s classic view returns 0 where the file stores NaN.
Argo float profiles: not a grid, and char variables whose string dimension gets dropped none understood LON_0_360 DSG_NOT_GRID CHAR_DIM_DROPPED Float profile data (profile x depth) with per-profile lon/lat, plus char flag variables with a length-1 string dimension that R readers silently drop, breaking dimension bookkeeping.
AVISO mean dynamic topography (CNES-CLS09, RIO07 Mediterranean): lon-major grids that GDAL georeferences with latitude as x C understood AXES_X_BEFORE_Y GEOTRANSFORM_TRANSPOSED Y_ASCENDING LON_0_360 LON_ABOVE_360 SENTINEL_UNDECLARED Regular 1/4 and 1/8 degree MDT grids stored (lon, lat); GDAL’s classic view gives them a plausible geotransform with latitude across and longitude down, so the map is transposed without any error. RIO07 longitudes run past 360, CLS09’s height holds two undocumented 9999 cells, and the CNES-CLS13 successor is CF (lat, lon) and reads correctly.
C3S flow-duration indicators on a 0.5 degree grid: ensemble members as value1..value12 C understood Y_ASCENDING Gridded companions of the catchment files: a regular 0.5 degree grid with ascending latitude that GDAL reads correctly, but the 12 ensemble members are separate variables identified only by global-attribute strings, with inconsistent units.
C3S flow-duration indicators per catchment: SUBID codes labelled as longitude none understood COORD_NONMONOTONIC ID_AS_COORDINATE The remap215 files hold one value per E-HYPE catchment, but the catchment id coordinate claims standard_name longitude, units degrees, axis X; there is no grid and no geometry in the file.
CF timeSeries station file that GDAL opens as a 20 x 10 raster none understood DSG_NOT_GRID A CF-1.7 featureType=timeSeries file (10 stations x 20 days) is not a grid, but GDAL presents it as a time-by-station image with no geolocation.
COCO Southern Ocean ice-ocean output: displaced-pole model coordinates labelled as longitude and Mercator-spaced latitude D E understood LAT_MERCATOR_SPACED MODEL_COORDS_AS_LONLAT GRID_DISPLACED_POLE GRID_STAGGERED_CORNERS TIME_REF_YEAR_ZERO Y_ASCENDING LON_0_360 Daily sea ice fields on a 1024 x 384 COCO model grid whose 1D longitude/latitude axes are model coordinates (pole moved to 82S 45E), not geography; read them as lon/lat and cells land a median 45 degrees of arc from where they belong. The true positions are in separate 2D lon0/lat0 files, which are regular in a polar stereographic -> shift -> log-polar PROJ pipeline to within 7 m.
CORDEX EUR-11 file with the rotated-pole CRS and rlon/rlat stripped, leaving only 2D lon/lat E understood GRID_2D_LONLAT_ONLY GRID_CRYPTIC_CURVILINEAR A DMI-HIRHAM5 EUR-11 precipitation field, post-processed with cdo/nco, that has lost its rlon/rlat axes and rotated_pole grid_mapping; the 2D lon/lat match the standard EUR-11 rotated grid exactly, so the regular grid can be restored.
CORDEX EUR-44 rotated-pole grids, and a GeoTIFF that labels rotated coordinates as WGS84 E2 B understood GRID_2D_WITH_PROJECTED_1D Two CF rotated_latitude_longitude files that current GDAL reads correctly, plus out.tif, a copy of the first whose rotated rlon/rlat extent is tagged EPSG:4326, which puts European data in the tropical Atlantic.
CryoSat-2 Antarctic sea ice: the NSIDC 25 km polar stereographic grid stored as 2D lon/lat E understood GRID_2D_LONLAT_ONLY GRID_CRYPTIC_CURVILINEAR Only 2D lat/lon (332 x 316) and no CRS, but the positions are the NSIDC 25 km south grid (EPSG:3412) to within 40 m; GDAL reads it upside down by default, and EPSG:3031 is wrong by up to 13 km.
E-OBS v19.0e sea-level pressure ensemble mean: 25202 daily grids, too big to read whole C open A download script for the E-OBS 0.25 degree pp ensemble-mean file survives; the data file is lost but its header shows 25202 x 201 x 464 int16, about 4.7 GB unpacked, listed as a large-memory example.
GFDL CM2.1 ocean: 1D lon/lat axes are nominal; true positions are 2D (tripolar north of 65N) H understood COORD_IRREGULAR LON_BELOW_MINUS_180 Y_ASCENDING A CM2.1 ocean region mask with nominal 1D axes plus true 2D geolon/geolat, and an SST file on the same grid whose 1D xt/yt are neither the nominal nor the true positions; use the mask file’s geolon_t/geolat_t as geolocation for the SST.
GPM DPR 3A-DAY via OPeNDAP: (nlon, nlat) order gives GDAL a grid with latitude as x C understood AXES_X_BEFORE_Y Y_ASCENDING A GPM DPR daily grid subset from a Hyrax OPeNDAP server with dimensions (AD, chn, nlon, nlat); GDAL’s classic view makes latitude the x axis and longitude the y axis, so it has to be transposed.
MESAN precipitation over Italy: a rotated-pole grid flattened to 2-D lon/lat by cdo E understood GRID_2D_LONLAT_ONLY GRID_CRYPTIC_CURVILINEAR cdo setgridtype,curvilinear replaced the native rotated lat/lon axes with 2-D lon/lat; the grid is exactly regular (0.05 degree) in a rotated pole at lon -165, lat 29.
NOAA snow cover CDR: a polar stereographic grid labelled latitude_longitude E understood GRID_2D_LONLAT_ONLY GRID_CRYPTIC_CURVILINEAR GRID_MAPPING_MISLABELLED The 88 x 88 grid carries only 2-D lon/lat and a grid_mapping that says latitude_longitude, but it is an exact polar stereographic grid (lat_ts 60, lon_0 -80) recoverable as a geotransform.
Old AVISO geostrophic velocity grid: Mercator rows labelled as latitude, stored lon-major D understood LAT_MERCATOR_SPACED AXES_X_BEFORE_Y Y_ASCENDING LON_0_360 A 2006 SSALTO/DUACS file whose 1D latitude axis is Mercator-spaced (1/3 degree in Mercator y), with data stored (lon, lat); read it as regular lon/lat and features land up to 19.5 degrees of latitude away.
OSCAR tropical Pacific currents: a 0-360 grid that spans the antimeridian C open LON_0_360 Reads correctly in GDAL; the only awkward features found are longitudes 120.5-289.5 E across the antimeridian, non-CF unit spellings and no CRS. Why it was collected is not recorded.
R raster writeRaster output: generic z layer dimension and CRS only in a global attribute C open A clean 0.25 degree lon/lat grid around Tasmania; the only awkward features found are a z dimension with units unknown and a PROJ.4 crs global attribute that CF readers ignore. Why it was collected is not recorded.
RegCM domain file: proper LCC grid with two staggered 2D lon/lat sets (cross and dot points) E2 understood GRID_2D_WITH_PROJECTED_1D A RegCM 4.6.1 EURO-CORDEX terrain/domain file on a 12 km Lambert conformal conic grid; GDAL georeferences it from jx/iy and crs, the cross-point xlon/xlat are the cell centres, and the dot-point dlon/dlat sit half a cell (6 km) to the south-west.
RegCM exceedance grid stored south-to-north (latitude ascending) C understood Y_ASCENDING Rows are stored with latitude ascending, so any reader that takes array order as image order shows it upside down; GDAL’s netCDF driver flips it correctly.
SILO daily rain: chunks span the whole year, so GDAL reads the full file once per band C understood Y_ASCENDING AXES_X_BEFORE_Y CHUNKS_SPAN_BAND_DIM A SILO annual daily_rain netCDF-4 file is chunked (365, 30, 50); GDAL’s band-by-band read pulls every chunk for every day, about 428 MB per band, which made nc-to-GeoTIFF conversion take tens of minutes in 2019.
SSM/I sea ice on the NSIDC south polar grid with no coordinates; GDAL reads it upside down A understood GRID_NO_COORDS No coordinate variables and no CRS, only grid = NSIDC in a global attribute; rows are stored top-down but GDAL assumes bottom-up and flips them.
Three regional climate files, three grid encodings: 2D lon/lat only, rotated pole without 2D lon/lat, projected LAEA E C understood GRID_2D_LONLAT_ONLY GRID_CRYPTIC_CURVILINEAR GRID_2D_WITH_PROJECTED_1D Examples sent to stars issue 62. A PROMES MED-44 file with only 2D lon/lat and no CRS, a CCLM MED-44 rotated-pole file, and an EURO4M-APGD LAEA file; current GDAL georeferences the last two, and the first reads through its geolocation arrays.
TOPEX/POSEIDON sea level: land and no-data sentinels declared under non-CF attribute names C understood Y_ASCENDING LON_0_360 FILL_ATTR_NONSTANDARD sea_level marks land as 32766 and no data as 32767 via attributes land_value and fill_value, which CF readers ignore; only valid_min/valid_max catches them. Grid is 0-360, latitude ascending.
UCSD global 1-minute topography: a headerless spherical Mercator grid whose ERS header, hand-written VRTs and netCDF all describe it differently A B C understood RAW_NO_HEADER LAT_MERCATOR_SPACED LON_0_360 HEADER_NO_GEOTRANSFORM SIDECAR_GEOREF_WRONG COPY_IS_RESAMPLED FLAG_IN_VALUE_PARITY VRT_RAW_SOURCE_BLOCKED topo_N.img is 21600 x 17280 big-endian Int16 on a spherical Mercator grid with square 1-arcminute pixels (0 to 360 E, 80.738 S to 80.738 N); the ERS header gives GDAL no geotransform, the hand-written VRTs misplace cells by up to 11 km in latitude (and 0.4 degrees in longitude for the sphere-based ones), and topo_N.nc is not the same grid but a float32 resample onto regular lon/lat that drops the sounding flag.
UKCP18 12 km rotated-pole tas: full file lost, only 48 MiB truncated copies survive C open TRUNCATED A 4D UKCP18 regional tas file (ensemble_member, time, grid_latitude, grid_longitude) on a rotated pole grid was listed for its dimensions; the 814,764,140-byte file is lost and the surviving copies are cut off at about 50 MB.
Whole-globe Lambert azimuthal disk stored transposed, with Inf lon/lat off the disk E understood GRID_2D_LONLAT_ONLY GRID_CRYPTIC_CURVILINEAR COORD_NONFINITE ARRAY_TRANSPOSED A 128 x 128 GEBCO elevation image of the whole sphere in Lambert azimuthal equal-area, described only by 2D lon/lat arrays that are Inf outside the disk; the array is transposed (north to the left) and GDAL’s geolocation warp fails.
World Ocean Database single-cast profile: 1D in depth, not a raster none understood DSG_NOT_GRID A WOD CF featureType=Profile file holds one ocean cast (scalar lon/lat/time, 12 depth levels); GDAL’s raster open fails and its subdatasets are 12 x 1 strips.