Skip to content

pygmt.grdmask: Create mask grid from polygons or point coverage(required arguments)#4428

Open
Chuan1937 wants to merge 21 commits intoGenericMappingTools:mainfrom
Chuan1937:grdmask1
Open

pygmt.grdmask: Create mask grid from polygons or point coverage(required arguments)#4428
Chuan1937 wants to merge 21 commits intoGenericMappingTools:mainfrom
Chuan1937:grdmask1

Conversation

@Chuan1937
Copy link
Member

@Chuan1937 Chuan1937 commented Feb 25, 2026

pygmt.grdmask: Create mask grid from polygons or point coverage(required arguments)

Preview: https://pygmt-dev--4428.org.readthedocs.build/en/4428/api/generated/pygmt.grdmask.html#pygmt.grdmask

@Chuan1937 Chuan1937 changed the title pygmt.grdmask: Create mask grid from polygons or point coverage pygmt.grdmask: Create mask grid from polygons or point coverage(required arguments) Feb 25, 2026
@Chuan1937 Chuan1937 self-assigned this Feb 25, 2026
Chuan1937 and others added 3 commits February 25, 2026 22:01
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Chuan1937 and others added 2 commits February 25, 2026 22:21
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@Chuan1937 Chuan1937 requested a review from seisman February 26, 2026 05:40
@Chuan1937 Chuan1937 requested a review from seisman March 2, 2026 03:29
Chuan1937 and others added 4 commits March 2, 2026 17:53
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
>>> _alias_option_N(inside="id", edge="id")._value
'P'
"""
special_modes = {"z": "z", "id": "p"}
Copy link
Member

Choose a reason for hiding this comment

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

I feel the code logic can be further simplified, but I don't have time checking it yet.

Copy link
Member Author

Choose a reason for hiding this comment

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

I simplified the code logic.

Chuan1937 and others added 3 commits March 3, 2026 10:16
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@Chuan1937 Chuan1937 requested a review from seisman March 3, 2026 02:27
and "id" (use running polygon ID).

Examples
--------
Copy link
Member

Choose a reason for hiding this comment

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

Please check the output of _alias_option_N()

Chuan1937 and others added 2 commits March 3, 2026 14:43
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
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.

2 participants