Skip to content

Passing in virtual files into the supplementary x2sys modules #3717

Open

Description

@weiji14

Description of the desired feature

Crossposting from GenericMappingTools/pygmt#546 (comment)_. The supplementary X2SYS modules doesn't seem to support virtual files from the GMT C API yet, only ASCII, Binary and NetCDF files according to https://docs.generic-mapping-tools.org/6.1/supplements/x2sys/x2sys_init.html#format-definition-files. This is the error message when I try to pass in a virtualfile to x2sys_cross:

x2sys_cross [WARNING]: No time column, use dummy times
Not a valid unit: c [meter assumed]
Not a valid unit: c [meter assumed]
x2sys_cross [ERROR]: x2sys_read_file : Cannot find track @GMTAPI@-S-I-D-M-T-N-000000
(null): Error from fclose [@GMTAPI@-S-I-D-M-T-N-000000]

The equivalent non-virtualfile MCWE in GMT would be something like this:

export X2SYS_HOME=.
gmt x2sys_init GMT -Dxyz -F
gmt x2sys_cross @tut_ship.xyz -TGMT -Qi > tmp.txt

Are you willing to help implement and maintain this feature? Perhaps, if it's not too hard 😄

Activity

  1. stale commented on Oct 23, 2020

    @stale

    This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.

  2. added
    stale
    on Oct 23, 2020
  3. removed
    stale
    on Oct 23, 2020
  4. stale commented on Jan 23, 2021

    @stale

    This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.

  5. added
    stale
    on Jan 23, 2021
  6. reopened this on Feb 2, 2021
  7. added
    longterm
    and removed
    stale
    on Apr 21, 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

    longterm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions