Feature #74

Generalized splitxyz [Was: Manpage of splitxyz explains deprecated -M]

Added by Florian over 6 years ago. Updated about 3 years ago.

Status:In ProgressStart date:2012-05-04
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


       -M     Use Map units.  Then x,y are in degrees of  longitude,  latitude,  distances
              are in kilometers, and angles are azimuths.  [Default:  distances are carte-
              sian in same units as x,y and angles are counter-clockwise from horizontal].
should be removed but the hint about how distances are measured must be retained.

Feature request: Let -D option handle UNIT modifiers, e.g., -Dminimum_distance[UNIT] if -fg is specified.


#1 Updated by Florian over 6 years ago

-Ntemplate says it defaults to splitxyz_segment_%ld.{txt|bin} but actually the template is mandatory.

#2 Updated by Florian over 6 years ago

All segment header information in the input file is lost. The headers are overwritten completely. Is there a way to avoid this? I'd like to keep the original header entry.

#3 Updated by Florian over 6 years ago

Another feature request:
  1. rename splitxyz to gmtsplit.
  2. let gmtsplit operate on an arbitrary number of input columns which are all printed to stdout (unless -o is given).
  3. remove -Z option

#4 Updated by Paul over 6 years ago

I have reworded the content of -M and placed it in a new section DISTANCE CALCULATIONS, which explains that -fg is needed to turn on geographic behavior.
As for renaming GMT programs: That battle has been fought and lost before your time... I have argued for starting programs with gmt for those that do not have that etc but there is an understandable backlash for doing this.
I fixed -N so that the strdup only happens if an argument was actually given, otherwise the default will prevail later in the program.
The issues with arbitrary columns and -Z are related and needs some redesign.
Will look at -D..<unit>

#5 Updated by Paul over 6 years ago

  • Status changed from New to In Progress

Forgot to change status to in progress.

#6 Updated by Paul over 5 years ago

  • Tracker changed from Bug to Feature
  • Subject changed from Manpage of splitxyz explains deprecated -M to Generalized splitxyz [Was: Manpage of splitxyz explains deprecated -M]

I think this is now devolved into a feature request: Eliminate -Z and generalize the input more.

#7 Updated by Paul about 3 years ago

Suggest we follow other tools and use the format x,y[,d,h],z where z might be any number of additional columns. Also, gmtsplit is a much better name then but we could allow splitxyz under the hood.

Also available in: Atom PDF