You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pygmt-session [ERROR]: GMT_COMPATIBILITY: Expects values from 6 to 6; reset to 6. #365
pygmt complains about the GMT_COMPATIBILITY parameter. By default, this is set to 4, but pygmt expects 6. Setting GMT_COMPATIBILITY = 6 in my root gmt.conf file removes this warning, but setting this parameter to 6 should rather be done locally by pygmt itself.
In [3]: fig = pygmt.Figure()
pygmt-session [ERROR]: GMT_COMPATIBILITY: Expects values from 6 to 6; reset to 6.
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct.
Historically, gmt has always had a default configuration file, which as of version 6 should be located in .gmt. I note that gmt v6 does not itself create a default configuration file for you, but the documentation tells you how to do this, and I presume that everyone will in fact do this. This default configuration is most often used to set high level defaults, such as the paper size (which differs between the US and Europe), as well as the preferred measurement units (SI or english).
It doesn't appear to be a good idea to ask the user to delete the default gmt configuration file just to suppress pygmt warnings.
Activity
welcome commentedon Nov 4, 2019
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct.
seisman commentedon Nov 4, 2019
Any reason you want to have a "gmt.conf" file in you home directory? The simplest way is to remove the "root"
gmt.conf.MarkWieczorek commentedon Nov 4, 2019
Historically, gmt has always had a default configuration file, which as of version 6 should be located in
.gmt. I note that gmt v6 does not itself create a default configuration file for you, but the documentation tells you how to do this, and I presume that everyone will in fact do this. This default configuration is most often used to set high level defaults, such as the paper size (which differs between the US and Europe), as well as the preferred measurement units (SI or english).It doesn't appear to be a good idea to ask the user to delete the default gmt configuration file just to suppress pygmt warnings.
seisman commentedon Nov 4, 2019
This issue has been fixed in upstream GMT codes in GenericMappingTools/gmt#1981.
weiji14 commentedon Mar 24, 2020
Closing this issue as it should be resolved. If anyone else has this problem, let us know and we can reopen it if necessary.