-
Notifications
You must be signed in to change notification settings - Fork 229
Figure.meca: Improve documentation #3517
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
Conversation
/format |
@yvonnefroehlich What's the status of this PR? Do you think we can finish it in v0.14.0? |
I just resolved the merge conflicts and will look later what is missing here. |
Co-authored-by: Dongdong Tian <[email protected]>
pygmt/src/meca.py
Outdated
convention. For the different conventions, the following combination of keys/ | ||
column names are required: | ||
|
||
- ``"aki"``: *strike*, *dip*, *rake*, *magnitude* | ||
- ``"gcmt"``: *strike1*, *dip1*, *rake1*, *strike2*, *dip2*, *rake2*, | ||
*mantissa*, *exponent* | ||
- ``"mt"``: *mrr*, *mtt*, *mff*, *mrt*, *mrf*, *mtf*, *exponent* | ||
- ``"partial"``: *strike1*, *dip1*, *strike2*, *fault_type*, *magnitude* | ||
- ``"principal_axis"``: *t_value*, *t_azimuth*, *t_plunge*, *n_value*, | ||
*n_azimuth*, *n_plunge*, *p_value*, *p_azimuth*, *p_plunge*, *exponent* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about adding a table about focal mechanism conventions before the parameter list, then we can shorten this part. The table can be like:
Convention | Description | Focal parameters |
---|---|---|
"aki" |
Aki & Richard | strike, dip, rake, magnitude |
... | ... | ... |
Of course, it can be done in future PRs if you prefer to have this PR merged in v0.14.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good idea. A table makes these different options more readable. And later we can point to this table in the beachball tutorial and short the introduction part there. Can give it a try in a separat PR.
Co-authored-by: Dongdong Tian <[email protected]>
Description of proposed changes
Some improvements of the documetation of
Figure.meca
:Preview: https://pygmt-dev--3517.org.readthedocs.build/en/3517/api/generated/pygmt.Figure.meca.html
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash command is:
/format
: automatically format and lint the code