GenericMappingTools / GenericMappingTools/gmt

Allow psclip to work with (x,y,z) coordinates

Open
#4,694 1 comment 1 reaction 0 assignees View on GitHub
feature request
Dominant language
C
Stars
979
Forks
414
Avg merge
17h 26m
Merged PRs (30d)
54

Description

**Description of the desired feature**

I want to make some 3-D pseudo perspective view of a geoelectric model. Having a psclip that work with (x,y,z) coordinates will help a lot.
To illustrate it, I will use a synthetic model, as shown below:
![CrossSectionFull](https://user-images.githubusercontent.com/962486/105634937-40520600-5e3f-11eb-8cde-1dc8913b0cb7.png)
I wish to show only the central part of the model:
![CrossSectionCentral](https://user-images.githubusercontent.com/962486/105635038-b8b8c700-5e3f-11eb-92b0-5a2b666b9a84.png)
Using only gmt and some simple awk edition, all that I could get is:
![3DsidesOutOfRange](https://user-images.githubusercontent.com/962486/105635078-e3a31b00-5e3f-11eb-901b-f15d65002bc2.png)
As mentioned in the [forum,](https://forum.generic-mapping-tools.org/t/how-clip-the-side-of-a-3d-plot/1212) I was not able to clip the sides of a 3D plot.
What I wanted to get would be like this:
![3DinRange](https://user-images.githubusercontent.com/962486/105635112-13522300-5e40-11eb-9d0f-f4d12a6d9874.png)
In this case, I used a python program to select the data in the range, but this solution is not generic.
I think it could be very useful if it could be done using psclip.
Follow the data and scripts that I used to make these figures.
[psclip3D.zip](https://github.com/GenericMappingTools/gmt/files/5862548/psclip3D.zip)

**Are you willing to help implement and maintain this feature?** Yes/No
Yes. But not sure how.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.