Commit 5f1282c
Fix default output name for NASA source (fixes #14)
When using --data-source NASA without explicit -o, the CLI defaulted to
elevation.tif (GTiff format). But the NASA code path writes raw binary +
.rsc sidecar, so GDAL couldn't open the file during EGM-to-WGS84
conversion (it expected a real GeoTIFF).
Fix: force output_format to ENVI for NASA sources in the CLI, which
makes the default output name elevation.dem. Also assert ENVI format
in dem.main() as a safety net.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c662034 commit 5f1282c
2 files changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
416 | 415 | | |
417 | 416 | | |
418 | 417 | | |
| |||
0 commit comments