Skip to content

gmt select always needs at least one argument #3907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
seisman opened this issue Aug 10, 2020 · 5 comments
Closed

gmt select always needs at least one argument #3907

seisman opened this issue Aug 10, 2020 · 5 comments

Comments

@seisman
Copy link
Member

seisman commented Aug 10, 2020

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
@PaulWessel
Copy link
Member

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?

@seisman
Copy link
Member Author

seisman commented Aug 10, 2020

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.

@PaulWessel
Copy link
Member

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

@seisman
Copy link
Member Author

seisman commented Aug 10, 2020

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

@PaulWessel
Copy link
Member

Maybe just close this one?

@seisman seisman closed this as completed Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants