Skip to content

More Pythonic interface for the x2sys package #3929

Open
@seisman

Description

@seisman

Description of the desired feature

The x2sys package contains the following modules for cross-over analysis:

  • x2sys_binlist
  • x2sys_cross
  • x2sys_datalist
  • x2sys_get
  • x2sys_init
  • x2sys_list
  • x2sys_merge
  • x2sys_put
  • x2sys_report
  • x2sys_solve

Currently, PyGMT provides wrappers for x2sys_init and x2sys_cross as separate functions under the pygmt namespace.

Perhaps it's more Pythonic to wrap all the modules in a class instead. The syntax would be same thing like:

from pygmt import X2SYS

x2sys = X2SYS(...)   # Class __init__ function that wraps `x2sys_init`
x2sys.cross()  # Wraps `x2sys_cross`
x2sys.solve()  # Wraps `x2sys_solve`
...

Disclaimer: I've never used x2sys.

Are you willing to help implement and maintain this feature?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions