Skip to content

gmt grdimage -R0/360/-90/90 -Jq... fails to produce a plot #8963

Closed

Description

@mkononets

gmt grdimage -R0/360/-90/90 -Jq... silently fails to produce a plot. No errors reported.

example code:

gmt grdimage @earth_gebco_01d -R0/360/-90/90 -Jq0.05c -Q -png guick

the resulting quick.png contains only the auto-generated color bar:

Image

gmt grdview -T plots the requested map:

gmt grdview -T @earth_gebco_01d -R0/360/-90/90 -Jq0.05c -png guick

the map looks as expected:
Image

plotting using gmt grdimage also works if the poles are excluded from the region, e.g. -R0/360/-80/80.
gmt grdview is VERY slow for large grids for the apparent reasons.

Activity

  1. added
    bug
    on Apr 5, 2026
  2. joa-quim commented on Apr 6, 2026

    @joa-quim
    Member

    This still works
    gmt grdimage @earth_gebco_01d -R0/360/-90/89.999999999999 -Jq0.05 -png lixo

    but adding one more 9, no longer.

  3. added a commit that references this issue on May 29, 2026
    3be7593
  4. mkononets commented on May 29, 2026

    @mkononets
    Author

    Thanks!

    Why does this failure not happen for grdview, a north boundary of exactly +90 makes a later gmt_map_setup collapse the y-scale, producing a degenerate plot?

  5. joa-quim commented on May 29, 2026

    @joa-quim
    Member

    Don't know, didn't investigate that (grdview).

  6. mkononets commented on May 30, 2026

    @mkononets
    Author

    Could that thing possibly investigate that?

  7. joa-quim commented on May 30, 2026

    @joa-quim
    Member

    Yes it could, but that's a trade off of how to use time (its and mine) and since the problem is solved, I have other priorities on how to use those times.

  8. mkononets commented on May 30, 2026

    @mkononets
    Author

    Yes sure, I understand these limitations exist.

    What I mean is it's quite strange that grdview works fine while grdimage fails (without the 89.999999 N range adjustment). As this issue is closed now, anybody will hardly remember to check it out.

  9. joa-quim commented on May 30, 2026

    @joa-quim
    Member

    Yes, I understand that but grdimage and grdview are very different beasts and the code flow for this case seems to be different in each case and the one in grdimage may have a flaw resulting from some setting (that's what I vaguely remember of the explanation fir the bug)

  10. mkononets commented on May 30, 2026

    @mkononets
    Author

    Thanks for the workaround anyway.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions