SDAT File Won’t Open? The SAGA Grid Triplet, Explained by Symptoms

An .sdat file that “won’t open” is rarely a corrupted file. It is usually a case of mistaken identity: a SAGA grid is not one file but three — a .sgrd header, an .sdat data file and an .mgrd metadata file sharing one name — and different programs expect different members of that trio. Most open-failures come down to picking the wrong file for the program in front of you, or to the trio having been separated on its way across disks, emails and zip archives. Work through the symptoms below; each one points at a specific cause. Our explainer on SGRD and SDAT files covers the format itself in depth.

Symptom: QGIS or GDAL refuses the file you picked

You tried to add your SAGA grid to QGIS, or pointed a GDAL-based tool at it, and got an unsupported-format or cannot-open error. Check which file you selected. If you chose the .sgrd, you handed the program a small text header — it describes the grid but contains no data, and GDAL-based software does not read it as a raster. The file other software opens is the .sdat: it holds the actual cell values in the layout the header describes. Keep both files together in the same folder — GDAL reads the .sdat and uses the companion header information alongside it — but select the .sdat when you open the grid anywhere that is not SAGA itself. Inside SAGA, the relationship reverses: open the .sgrd, and SAGA follows the header to the data.

Symptom: SAGA opened this grid fine last week, now it fails

If a grid that used to load now refuses, suspect separation. At some point the files were moved, copied, renamed or sent somewhere, and only part of the trio made the trip — most often the small .sgrd, because it is the file people notice and pick. Without its .sdat companion under the exact same base name in the same folder, the header points at data that is not there. The same failure follows renaming one file of the pair and not the other. The remedy is bookkeeping, not repair software: bring the matching .sgrd, .sdat and .mgrd back together with identical base names and try again. If the .sdat really is gone, the grid is gone with it — a header alone cannot be turned back into elevation values, which is why the triplet rule matters before files travel, not after.

Symptom: You copied the grid, but the copy is only a few kilobytes

This is the same trap seen from the other side. A grid folder copied in a hurry, an email attachment, or a zip made by selecting the “grid file” in a file manager may contain only the .sgrd — a text file small enough to look suspiciously light for a DEM. Whoever receives it has a description of a grid and no grid. When you share or archive SAGA grids, select all three files, or zip the folder they live in rather than individual files. If you intend the recipient to work outside SAGA, the cleaner habit is to export a GeoTIFF copy for sharing and keep the native triplet as your working original.

Symptom: Grids coming out of QGIS / SAGA NextGen behave oddly

When you run SAGA tools through the Processing SAGA NextGen provider in QGIS, the outputs are SAGA grids — triplets again — and processing workflows like to park them in temporary locations. A result that “won’t open” afterwards often turns out to be a temporary output whose companions were cleared away, or a layer you are trying to reopen from a temp path after the session ended. The durable fix is procedural: save tool outputs to real files in your project folder at run time instead of relying on temporary layers, and if an output matters, export it to GeoTIFF while it is on screen. If the provider itself is misbehaving — tools missing, runs failing — that is a different problem, covered in SAGA NextGen provider not working.

Symptom: It opens, but the grid looks wrong

A subtler variant: the grid loads, but displays blank, flat, or wildly different from what you expected. One cause worth checking before anything exotic is a mismatched marriage — a header from one version of a grid paired with the data file of another. It happens easily in practice: you export a corrected DEM to the same folder and same name as the old one, one file gets overwritten and the other does not, or two same-named grids from different projects end up sharing a directory. The header then describes dimensions or a value type that the data file does not actually have, and the software renders whatever that mismatch produces. The test is provenance: regenerate or re-export the grid into a clean, empty folder under a fresh name, so all three files are born together, and open that copy. If it displays correctly, your original folder was the problem — and the general lesson stands: one grid, one folder, one name, and never overwrite half a triplet.

Symptom: Double-clicking opens the wrong program, or nothing

Windows and macOS file associations for .sdat are essentially arbitrary — whatever program last claimed the extension opens, shrugs, or errors. This says nothing about the file’s health. Open grids from inside the software instead: the .sgrd from within SAGA, the .sdat from within QGIS or your GDAL tool. Judged by symptoms rather than by file extension folklore, nearly every “SDAT won’t open” case resolves into one of the four causes above: wrong member of the triplet, separated files, a header-only copy, or a temporary output that was never saved properly. The troubleshooting hub collects the related fixes.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *