You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gmt select always needs at least one argument #3907
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?
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.
Activity
PaulWessel commentedon Aug 10, 2020
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 commentedon Aug 10, 2020
Sometimes I find it useful to run
gmt selectwithout 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.datwithout any options also works. The only one that doesn't work isecho 5 5 TEXT | gmt select.PaulWessel commentedon Aug 10, 2020
Wouldn't gmt convert be the more logical module for this purpose?
seisman commentedon Aug 10, 2020
Aha, didn't realize that "convert" is the better choice.
PaulWessel commentedon Aug 17, 2020
Maybe just close this one?