Feature #1012

Let pstext support -i option

Added by Dongdong 5 months ago. Updated 5 months ago.

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


Target version:-


-i option is very useful when users want to select which columns to read.
psxy, xyz2grd and most table data related modules support this option.

However, -i option can NOT be used in pstext. Is it a missing feature?


#1 Updated by Joaquim 5 months ago

  • Status changed from New to In Progress

Hmm, some mixed info. The pstext synopsis lists -i but it's actually not implemented.
Please try this to see if it works well, change pstext line L36



#define GMT_PROG_OPTIONS "-:>BJKOPRUVXYacfhiptxy" GMT_OPT("E")

#2 Updated by Dongdong 5 months ago

Changing pstext L36 does not working.

echo TEXT 1 4 | /opt/GMT5-dev/bin/gmt pstext -JX10c/10c -R0/5/0/5 -Baf -i1,2,0 > test.ps
pstext: Record 0 had bad x coordinate, skipped)

#3 Updated by Paul 5 months ago

pstxt is reading text records so it cannot (easily) handle -i without some special processing.

Also available in: Atom PDF