Skip to content
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

Add new modifier +e to 1-D array creation option -T to handle rounding #161

Merged
merged 1 commit into from
Nov 4, 2018

Conversation

PaulWessel
Copy link
Member

When inc is specified and min/max are determined from data there is the chance that (max-min)/inc is NOT an integer, which is required. By default we adjust the increment to fit, while +e changes this to adjust max instead. This matches the behavior we use for grid setup.

This modification derives from the troubles encountered at http:https://gmt.soest.hawaii.edu/boards/1/topics/7714.

When inc is specified and min/max are determined from data there is the chance that (max-min)/inc is NOT an integer, which is required. By defailt we adjust the increment to fit, while +e changes this to adjust max instead.  This matches the behavior for grid setup.
@PaulWessel PaulWessel requested a review from a team November 4, 2018 20:05
Copy link
Member

@joa-quim joa-quim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, it looks I was not the only one with memory stuck.

@PaulWessel PaulWessel merged commit 514d3dd into master Nov 4, 2018
@PaulWessel PaulWessel deleted the arrayspecification branch November 4, 2018 20:16
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

Successfully merging this pull request may close these issues.

None yet

2 participants