Skip to content

Add a tutorial explaining the generally accepted input types #1268

Open

Description

@seisman

Inspired by PR #1186.

For GMT CLI, there are mainly two types of input: a table or a grid. PyGMT is more powerful and can accept more input types.

For a table input, PyGMT functions generally accept the following input types:

For a grid input, PyGMT functions generally accept the following input types:

  • a file name to a grid file, e.g., grid="input_grid.nc"
  • xarray.DataArray, e.g., grid=grid
  • more?

Although these various input data types are already used in different tutorials and examples, I think it would be better to have a standalone tutorial, explaining these input types.

Activity

  1. added
    documentation
    on May 10, 2021
  2. added
    help wanted
    on May 10, 2021
  3. added
    scipy-sprint
    on Jul 6, 2021
  4. added
    eswn-workshop
    and removed
    scipy-sprint
    on Aug 17, 2021
  5. removed
    eswn-workshop
    on Feb 26, 2022
  6. weiji14 commented on Feb 27, 2022

    @weiji14
    Member

    Also should mention that plotting shapefiles directly using plot and plot3d (maybe others too?) is supported. Xref #1616 and https://docs.generic-mapping-tools.org/6.3/cookbook/file-formats.html?highlight=shapefile#shapefiles

  7. added this to the 0.6.1 milestone on Mar 18, 2022
  8. seisman commented on Mar 19, 2022

    @seisman
    MemberAuthor

    pathlib.Path support was added in #1382.

  9. modified the milestones: 0.6.1, 0.7.0 on Apr 9, 2022
  10. modified the milestones: 0.7.0, 0.8.0 on Jun 23, 2022
  11. modified the milestones: 0.8.0, 0.9.0 on Dec 11, 2022
  12. pinned this issue on Jan 4, 2023
  13. modified the milestones: 0.9.0, 0.10.0 on Mar 16, 2023
  14. weiji14 commented on Jul 5, 2023

    @weiji14
    Member

    Working on supporting 3-band xarray.DataArray inputs at #2590, this would be in addition to regular 1-band xarray.DataArray inputs (e.g. DEMs).

  15. modified the milestones: 0.10.0, 0.11.0 on Aug 29, 2023
  16. unpinned this issue on Dec 3, 2023
  17. modified the milestones: 0.11.0, 0.12.0 on Dec 11, 2023
  18. removed this from the 0.12.0 milestone on Feb 26, 2024
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

    documentationhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions