Skip to content

Modern mode compatibility error if there is a pre-existing gmt.conf #1980

Closed

Description

@seisman

First reported in GenericMappingTools/pygmt#365.

If there is a pre-existing gmt.conf file, especially old GMT5 gmt.conf which lists all GMT settings, using modern mode commands reports errors.

gmt [ERROR]: GMT_COMPATIBILITY: Expects values from 6 to 6; reset to 6.
gmt [ERROR]: GMT_COMPATIBILITY: Expects values from 6 to 6; reset to 6.

A minimal script to reproduce the issue.

cat << EOF > gmt.conf
GMT_COMPATIBILITY = 4
EOF

gmt begin map
gmt coast -Rg -JH10c -Baf -W1p
gmt end show

Should it be a warning or a compatibility message, instead of an error?

Activity

  1. seisman commented on Nov 4, 2019

    @seisman
    MemberAuthor

    Closed by #1981.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions