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

Script to parse units and name #28

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Conversation

rcaneill
Copy link
Collaborator

This PR is not meant to be merged, just to keep somewhere the script I wrote to parse units and name from the matlab doc.

@rcaneill
Copy link
Collaborator Author

Here is the output for the first 10 functions of gsw, sweet :) (of course, it will still imply some work by hand...)

{'CT_first_derivatives': {'units': 'K/(g/kg)'}, 'CT_first_derivatives_wrt_t_exact': {'units': 'K/(g/kg)'}, 'CT_freezing': {'units': 'degC'}, 'CT_freezing_first_derivatives': {'units': 'K/(g/kg)'}, 'CT_freezing_first_derivatives_poly': {'units': 'K/(g/kg)'}, 'CT_freezing_poly': {'units': 'degC'}, 'CT_from_enthalpy': {'units': 'degC'}, 'CT_from_enthalpy_exact': {'units': 'degC'}, 'CT_from_entropy': {'units': 'degC'}, 'CT_from_pt': {'units': 'degC'}}
{'CT_first_derivatives': 'CT', 'CT_first_derivatives_wrt_t_exact': 'CT', 'CT_freezing': 'CT', 'CT_freezing_first_derivatives': 'CTfreezing', 'CT_freezing_first_derivatives_poly': 'CTfreezing', 'CT_freezing_poly': 'CT', 'CT_from_enthalpy': 'CT', 'CT_from_enthalpy_exact': 'CT', 'CT_from_entropy': 'CT', 'CT_from_pt': 'CT'}

@DocOtak
Copy link
Owner

DocOtak commented May 18, 2022

I think it would be OK to have these type of scripts merged into the main repo as long as they are separate from the installable distribution. Maybe a little readme saying that these were basically dev scripts used to generate other parts of the code/data, that they are not "maintained" or really meant to be used.

@rcaneill
Copy link
Collaborator Author

Ok, I'll merge (+ small doc) with the next update of the script (when I will parse the inputs units / names)

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.

2 participants