Skip to content

Wrapper for grdtrack #307

Closed
Closed

Description

@weiji14

Description of the desired feature

Implement grdtrack which "Sample grids at specified (x,y) locations". Continuing to add data processing functionality to pygmt following my earlier work on #245.

The grdtrack function belongs to the "Sampling of 1-D and 2-D Data" family of functions in GMT (see module quickref). It is slightly tricky to implement as it takes 2 input files (a table and a grid), but is nevertheless useful for people working on stuff like radar or laser altimetry, as mentioned by @steo85it in https://gitter.im/GenericMappingTools/pygmt?at=5c89603a8f294b134a38ed82.

Notes

Idea for structure

Store the grdtrack function under sampling.py. Similar to how e.g. surface is under gridding.py.

# File at gmt/sampling.py
"""
GMT modules for Sampling of 1-D and 2-D Data
"""

def grdtrack(table: pd.DataFrame, grid: xr.DataArray, **kwargs):

Are you willing to help implement and maintain this feature? Yes

Activity

  1. added a commit that references this issue on May 22, 2019
  2. added
    feature request
    on Oct 1, 2019
  3. added this to the 0.1.0 milestone on Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions