Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add undocumented option to write a multi-segment as single segment fi… #109

Merged
merged 1 commit into from
Oct 6, 2018

Conversation

joa-quim
Copy link
Member

@joa-quim joa-quim commented Oct 6, 2018

This new -Ms option makes almost no difference for command line but has a radical effect when called from external interfaces. From the MEX and Julia interfaces a multi-segment file is a struct array with each element carrying a segment. Plotting this in Matlab is annoying so we added the function catseg to the gmt.m helper file to join all segments in a multi-segment struct array. This PR just avoids this step and saves also from having to duplicate the dataset.

Ideally this should be done at a more basic level and so be available to all multi-segment producing modules.

@PaulWessel PaulWessel merged commit 7b4aba2 into master Oct 6, 2018
@seisman seisman deleted the pscoast-single branch October 23, 2018 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants