Skip to content

gmt select always needs at least one argument #3907

Closed

Description

@seisman

The command below prints the module usage:

echo 5 5 TEXT | gmt select

but adding -Ve (or any other options) works:

echo 5 5 TEXT | gmt select -Ve                      
5	5	TEXT

Activity

  1. PaulWessel commented on Aug 10, 2020

    @PaulWessel
    Contributor

    Usually, gmt select is given a directory on how to select, i.e., one of -C, -F, -G, -L, -R, -S, -Z. If nothing is given the perhaps that should be an error instead of giving usage?

  2. seisman commented on Aug 10, 2020

    @seisman
    MemberAuthor

    Sometimes I find it useful to run gmt select without any other options to remove the comments in the file or convert GMT/OGR format to a plaintext format (removing the ORG specific comments). It's also common to use options like -i, -o, -h, -q to process the data.

    BTW, gmt select input.dat without any options also works. The only one that doesn't work is echo 5 5 TEXT | gmt select.

  3. PaulWessel commented on Aug 10, 2020

    @PaulWessel
    Contributor

    Wouldn't gmt convert be the more logical module for this purpose?

  4. seisman commented on Aug 10, 2020

    @seisman
    MemberAuthor

    Aha, didn't realize that "convert" is the better choice.

  5. PaulWessel commented on Aug 17, 2020

    @PaulWessel
    Contributor

    Maybe just close this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions