GenericMappingTools / GenericMappingTools/GMT.jl

Inconsistent default central meridian of projection in modern mode

Open
#755 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
221
Forks
36
Avg merge
1h 36m
Merged PRs (30d)
17

Description

I have found that the central meridian is not set consistently when creating plots in modern mode:

Using an example grid file, e.g.
[gridfile.zip](https://github.com/GenericMappingTools/GMT.jl/files/7534977/gridfile.zip)

```
using GMT

gmtbegin("test_grdimage.png")
coast(
region = :g,
projection = :Robinson,
frame = :auto,
land = :dimgray,
shore = :thinner,
)
grdimage!(
"dir.2020.1.GeeK2007.6m.nc",
cmap = "cyclic",
nan_alpha = true,
)
gmtend(show = true)
```
produces:

![test_grdimage](https://user-images.githubusercontent.com/34595875/141704405-5b7e5437-f14f-4113-90e6-c627a2e3f776.png)

It is fixed by `projection = (; name = :Robinson, center = 180)` for example. So probably `grdimage` is setting a different default value. Low-priority issue since there is an easy workaround. Only affects modern mode.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.