Skip to content

Reading a grid tif file with src in the name opens as a SRTM30 - #9296

Merged
joa-quim merged 9 commits into
masterfrom
tiff-file-with-src-inname
Nov 12, 2026
Merged

joa-quim merged 9 commits into
masterfrom
tiff-file-with-src-inname

Conversation

@joa-quim

Copy link
Copy Markdown
Member

Reading this file from within a directory
src.tif

fails with

C:\TMP\esri\west>grdinfo C:\TMP\esri\west\src.tif
C:\TMP\esri\west\src.tif: Title: C:\TMP\esri\west\src
C:\TMP\esri\west\src.tif: Command:
C:\TMP\esri\west\src.tif: Remark: Assumed to be a GTOPO30 or SRTM30 tile
C:\TMP\esri\west\src.tif: Pixel node registration used [Geographic grid]
C:\TMP\esri\west\src.tif: Grid file format: ei = ESRI Arc/Info ASCII Grid Interchange format (ASCII integer)
C:\TMP\esri\west\src.tif: x_min: 0 x_max: 40 x_inc: 0.00833333333333 (30 sec) name: longitude n_columns: 4800
C:\TMP\esri\west\src.tif: y_min: -50 y_max: -0 y_inc: 0.00833333333333 (30 sec) name: latitude n_rows: 6000
C:\TMP\esri\west\src.tif: v_min: NaN v_max: NaN name: z
C:\TMP\esri\west\src.tif: scale_factor: 1 add_offset: 0

Assisted by: Opus 5.5

@joa-quim
joa-quim requested a review from a team November 11, 2026 22:44
@Esteban82 Esteban82 added the bug Something isn't working label Nov 12, 2026

@Esteban82 Esteban82 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works for me. I got this output now.

gmt grdinfo src.tif 
src.tif: Title: Grid imported via GDAL
src.tif: Command: 
src.tif: Remark: 
src.tif: Gridline node registration used [Cartesian grid]
src.tif: Grid file format: gd = Import/export through GDAL
src.tif: x_min: 0 x_max: 4 x_inc: 1 name: x n_columns: 5
src.tif: y_min: 0 y_max: 3 y_inc: 1 name: y n_rows: 4
src.tif: v_min: 0 v_max: 7 name: z
src.tif: scale_factor: 1 add_offset: 0
src.tif: Default CPT: 

@joa-quim
joa-quim merged commit 7e4b61d into master Nov 12, 2026
19 of 20 checks passed
@joa-quim
joa-quim deleted the tiff-file-with-src-inname branch November 12, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants