Skip to content

Gallery example to showcase blockmean/blockmedian and surface #1352

Closed

Description

@weiji14

Description of the desired feature

As suggested by #1351 (comment), it would be great to have a gallery example (or a full tutorial) showing how to use blockmean/blockmedian to reduce an xyz table dataset, and then run surface on the output to produce a grid (that can be plotted). There is an old and outdated example for processing LIDAR points at https://github.com/GenericMappingTools/foss4g2019oceania/blob/v1/3_lidar_to_surface.ipynb that can be used as a starting guide.

image

A challenge might be in sourcing a suitable xyz dataset that is openly available for this gallery example. Anyone have any suitable ideas?

Are you willing to help implement and maintain this feature? Happy to review or guide someone to work on this

Activity

  1. added
    good first issue
    documentation
    scipy-sprint
    on Jun 23, 2021
  2. added
    eswn-workshop
    and removed
    scipy-sprint
    on Aug 1, 2021
  3. maxrjones commented on Aug 19, 2021

    @maxrjones
    Member

    I used the xyz -> blockmedian -> surface workflow in the tutorial for the PyGMT refresher, which can also be used as a reference for this gallery example.

  4. added
    help wanted
    on Aug 19, 2021
  5. removed
    eswn-workshop
    on Feb 26, 2022
  6. added this to the 0.6.1 milestone on Mar 18, 2022
  7. modified the milestones: 0.6.1, 0.7.0 on Apr 9, 2022
  8. modified the milestones: 0.7.0, 0.8.0 on Jun 23, 2022
  9. modified the milestones: 0.8.0, 0.9.0 on Dec 11, 2022
  10. removed this from the 0.9.0 milestone on Mar 6, 2023
  11. Aayush7788 commented on Jul 25, 2026

    @Aayush7788
    Contributor

    Hi @weiji14, can i work on this issue

  12. Aayush7788 commented on Jul 26, 2026

    @Aayush7788
    Contributor

    sure @seisman, i am starting to work on this

  13. Aayush7788 commented on Jul 27, 2026

    @Aayush7788
    Contributor

    @seisman, i am thinking to add examples/gallery/images/gridding_with_surface.py using PyGMT’s built-in bathymetry sample dataset. The example will reduce the XYZ observations using blockmedian, mention blockmean as an alternative, create a grid with surface, and plot the result. I will keep the example deterministic and avoid intentionally generating warnings. Does this scope and location look appropriate?

  14. seisman commented on Jul 27, 2026

    @seisman
    Member

    Sounds good. Please give it a try.

  15. added this to the 0.20.0 milestone on Aug 12, 2026
  16. added
    documentation
    and removed
    documentation
    good first issue
    help wanted
    on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentation

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions