Skip to content

Let modifiers of -i (+d|l|o|s) available for -o. #6053

Closed

Description

@Esteban82

But for some modules it is not possible to use -i (at least in direct way).

For example, I will have to do this:

gmt pshistogram @v3206_06.txt -F -T50 -I -o3 | gmt info -i+d100 -C -o0
5.26

Instead of

gmt pshistogram @v3206_06.txt -F -T50 -I -o3+d100
pshistogram [ERROR]: The -o option does not take +d|l|o|s modifiers; consider -i instead.

Activity

  1. added
    feature request
    on Nov 23, 2021
  2. self-assigned this
    on Nov 23, 2021
  3. PaulWessel commented on Nov 23, 2021

    @PaulWessel
    Contributor

    As a command-line user I can sympathize with you on this. I may decide to add it. However, the external wrapper types like @joa-quim probably has no use for this as they can do those conversations easily in Julia (and Python and Matlab). Unlike the input (which is pretty convoluted), the output is much cleaner and I may wish to add a test on this to ensure it does not add much slowness to the execution time. E.g., if outputting a million records takes some nanoseconds longer than that is fine, but if it takes twice as long then it is a non-starter, etc.

  4. PaulWessel commented on Oct 9, 2023

    @PaulWessel
    Contributor

    See WIP implementation in #7887.

  5. Esteban82 commented on Oct 9, 2023

    @Esteban82
    MemberAuthor

    Now it is working!! Thanks Paul!

    gmt pshistogram @v3206_06.txt -F -T50 -I -o3
    gmt pshistogram @v3206_06.txt -F -T50 -I -o3+d100
    gmt pshistogram @v3206_06.txt -F -T50 -I -o3+o1
    gmt pshistogram @v3206_06.txt -F -T50 -I -o3+s2
    526
    5.26
    527
    1052
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions