Julia gmtselect -R screws the segments

Open
#7,435 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, julia
Domain
cli, data

Research direction

Reproduce the CLI commands and the GMT.jl calls shown in the issue, starting with gmtselect and its handling of the R region argument. Compare the multi-segment output from both paths; done when the Julia call preserves the segment structure and matches the CLI result.

Written by the indexing model from the issue text.

Description

bug

Is it the same sort of shit as the -g?
Because this works fine on CLI

gmt pscoast -Dc -Rd -M -W > cl.dat
gmt gmtselect cl.dat -R-180/-70/-90/90 > cc.dat

but seems to ignore the multi-segment nature on GMT.jl

cl = coast(dump=:true, res=:c, region=:global);
cc = gmtselect(cl, R=(-180,-70,-90,90));
imshow(cc)

GMTjl_j

Dominant language
C
Stars
997
Forks
420
Avg merge
13h 27m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenericMappingTools/gmt

All issues in GenericMappingTools/gmt

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.