GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow gmtmath trailing text to be kept for output by PaulWessel · Pull Request #7759 · GenericMappingTools/gmt

Conversation

@PaulWessel

@PaulWessel PaulWessel commented Aug 24, 2023

Copy link
Copy Markdown
Contributor

This came from this forum post. I see no reason to not keep the trailing text in gmtmath as it can always be ignored with -on. The change in this PR is to not force prevention of text output and also due the initial duplication from input to output text.

cay << EOF > in.txt
-317516 109061 high ms0334
-317517 109062 low ms0334
EOF

# Keep trailing text
gmt math -Ca in.txt 3600 DIV =
-88.1988888889	30.2947222222	high ms0334
-88.1991666667	30.295	low ms0334

# Discard trailing text
gmt math -Ca -on in.txt 3600 DIV =
-88.1988888889	30.2947222222
-88.1991666667	30.295

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
PaulWessel added 3 commits August 24, 2023 10:37
@PaulWessel
Allow any first-input trailing text to be kept for output
f99241e
This came from this forum post.  No reason to not keep the trailing text as it can always be ignored with -on.
@PaulWessel
Update gmtmath.c
af7b394
@PaulWessel
Update gmtmath.rst
9d2370c
@PaulWessel PaulWessel added the enhancement Improving an existing feature label Aug 24, 2023
@PaulWessel PaulWessel added this to the 6.5.0 milestone Aug 24, 2023
@PaulWessel
PaulWessel requested a review from a team August 24, 2023 08:48
@PaulWessel PaulWessel self-assigned this Aug 24, 2023
seisman
seisman reviewed Aug 24, 2023
View reviewed changes
Comment thread doc/rst/source/gmtmath.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

seisman
seisman approved these changes Aug 24, 2023
View reviewed changes
PaulWessel and others added 2 commits August 24, 2023 10:56
@PaulWessel @seisman
Update doc/rst/source/gmtmath.rst
b5c4cb4
Co-authored-by: Dongdong Tian <[email protected]>
@PaulWessel
Update gmtmath.rst
e746eed
@PaulWessel
PaulWessel merged commit 30661f2 into master Aug 24, 2023
@PaulWessel
PaulWessel deleted the gmtmath-trailing-text branch August 24, 2023 09:35
@maxrjones maxrjones added the add-changelog Add PR to the changelog label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@seisman seisman seisman approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@PaulWessel PaulWessel

Labels

add-changelog Add PR to the changelog enhancement Improving an existing feature

Projects

None yet

Milestone

6.5.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@PaulWessel @seisman @maxrjones
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.