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 — pygmt.grdfilter: Support Pythonic arguments for the distance parameter by seisman · Pull Request #4405 · GenericMappingTools/pygmt

Conversation

@seisman

@seisman seisman commented Feb 10, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

grdfilter's -D option is the distance flag indicating the meaning of the grid and the width. It can accept one of p or 0-5, but arguments like distance=4 is very confusing. This PR makes it take more readable arguments.

The long names come from

https://github.com/GenericMappingTools/gmt/blob/328f373b348747abcb2279456778e7f60567eb49/src/grdfilter.c#L149-L155

#define GRDFILTER_XY_PIXEL		-1
#define GRDFILTER_XY_CARTESIAN		0
#define GRDFILTER_GEO_CARTESIAN		1
#define GRDFILTER_GEO_FLATEARTH1	2
#define GRDFILTER_GEO_FLATEARTH2	3
#define GRDFILTER_GEO_SPHERICAL		4
#define GRDFILTER_GEO_MERCATOR		5

Preview: https://pygmt-dev--4405.org.readthedocs.build/en/4405/api/generated/pygmt.grdfilter.html

Sorry, something went wrong.

Uh oh!

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

All reactions
@seisman
seisman force-pushed the grdfilter/distance branch from f1b1a7c to 1157e8d Compare February 10, 2026 10:46
@seisman
pygmt.grdfilter: Support Pythonic arguments for the distance parameter
7d7baa1
@seisman
seisman force-pushed the grdfilter/distance branch from 1157e8d to 7d7baa1 Compare February 10, 2026 10:48
@seisman seisman added high-priority enhancement Improving an existing feature needs review This PR has higher priority and needs review. labels Feb 10, 2026
@seisman seisman added this to the 0.19.0 milestone Feb 10, 2026
@seisman seisman added this to PyGMT paper Feb 10, 2026
@seisman
seisman marked this pull request as ready for review February 10, 2026 12:20
@seisman
Improve docstrings
37f6b88
This was referenced Feb 11, 2026
Figure 5: Update grdfilter to the new syntax GenericMappingTools/pygmt-paper-figures#37
Merged
pygmt.grdfilter: Filter a grid in the space (or time) domain #4252
Closed
seisman added 2 commits February 11, 2026 15:23
@seisman
Check that distance is required
9d5bf2e
@seisman
Merge branch 'main' into grdfilter/distance
92ebbd3
@seisman seisman mentioned this pull request Feb 11, 2026
pygmt.grdfilter: Add parameters filter/width/highpass to set the filter [Part 1] #4401
Merged
seisman added 3 commits February 13, 2026 23:40
@seisman
Merge branch 'main' into grdfilter/distance
ea9fbd9
@seisman
Merge branch 'main' into grdfilter/distance
8c82ff8
@seisman
Merge branch 'main' into grdfilter/distance
5f3485b
@seisman seisman added final review call This PR requires final review and approval from a second reviewer and removed needs review This PR has higher priority and needs review. labels Feb 20, 2026
@seisman
seisman requested a review from a team February 20, 2026 07:53
@seisman

seisman commented Feb 20, 2026

Copy link
Copy Markdown
Member Author

@GenericMappingTools/pygmt-maintainers Please give this PR final reviews. Plan to merge it in three days.

All reactions

Sorry, something went wrong.

Uh oh!

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

seisman added 2 commits February 23, 2026 12:09
@seisman
Merge branch 'main' into grdfilter/distance
8b2471a
@seisman
Merge branch 'main' into grdfilter/distance
d069cfe
@seisman seisman removed final review call This PR requires final review and approval from a second reviewer high-priority labels Feb 24, 2026
@seisman
seisman merged commit cb607ed into main Feb 24, 2026
19 of 21 checks passed

Uh oh!

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

@seisman
seisman deleted the grdfilter/distance branch February 24, 2026 06:18
@github-project-automation github-project-automation Bot moved this to Done in PyGMT paper Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

enhancement Improving an existing feature

Projects

No open projects
PyGMT paper
Status: Done

Milestone

0.19.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

1 participant

@seisman
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 01402792 — 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.