Skip to content

Strengthen contouring checks#598

Merged
PaulWessel merged 2 commits intomasterfrom
contfixer
Apr 3, 2019
Merged

Strengthen contouring checks#598
PaulWessel merged 2 commits intomasterfrom
contfixer

Conversation

@PaulWessel
Copy link
Member

Neither grdcontour nor pscontour should allow a zero contour interval. grdcontour should make a plot even if no contours are drawn. This addresses most of #597. The case of -C1 with earth_relief_30m is particular since the data are integer and that means contours need to go through every node. This probably hits some crazy logic. However, we dont want to add a special check for the earth_relief grids. I will see if there is a way to avoid those odd messages.

Neither grdcontour nor pscontour should allow a zero contour interval.  grdcontour should make a plot even if no contours are drawn.  This addresses most of #597.
@PaulWessel PaulWessel requested review from a team and anbj April 3, 2019 07:39
Copy link
Contributor

@anbj anbj left a comment

Choose a reason for hiding this comment

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

Looks good Paul.

Ref. #597

  1. Maybe also output info that no contours were drawn? Then the user probably would change the choice of -L<low/high before running the command again.
  2. Fixed
  3. Ok

Count actual contours plotted and if none give a warning.
@PaulWessel PaulWessel merged commit 6df6c8b into master Apr 3, 2019
@PaulWessel PaulWessel deleted the contfixer branch April 3, 2019 18:51
obaney pushed a commit to obaney/gmt that referenced this pull request Aug 18, 2021
Allow potential to try PyGMT directly without installing anything on their computer.
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.

3 participants