Feature #1018

grdimage puts a +xy in the PS command instead of +latlong

Added by Joaquim 5 months ago. Updated 5 months ago.

Status:In ProgressStart date:2016-12-20
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:Candidate for next bugfix release
Platform:

Description

This was raised in http://gmt.soest.hawaii.edu/boards/1/topics/4494?r=4500 and results from the fact that the PS comment gets a %@PROJ: ... +xy instead of a +latlong

grdmath -R-116.85/-116.75/34.316667/34.383056 -I0.01 X = lixo.grd
grdimage lixo.grd -P > lixo.ps
psconvert lixo.ps -W+k
psconvert: Warning: An unknown psconvert setting was found but since image coordinates seem to be geographical, a linear transformation will be used.
psconvert: Warning: gmt_gdalread failed to convert the proj4 string
latlon
to WKT

History

#1 Updated by Joaquim 5 months ago

  • Status changed from New to In Progress

Ofc, those messages don't show up if the grid is created as geographic, e.g

grdmath -R-116.85/-116.75/34.316667/34.383056 -I0.01 X -fg = lixo.grd

So not sure if there is anything one can do here besides trying to catch this case and provide a more clear warning message.

#2 Updated by Joaquim 5 months ago

  • Tracker changed from Bug to Feature

Make it a feature since it's not a bug.

Also available in: Atom PDF