-
Notifications
You must be signed in to change notification settings - Fork 15
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
update functions to more closely match matlab? #9
Comments
the codes that appear in C only are subroutines that probably are at the end of one of the functions. |
we added the extra inputs to z_from_p in a more recent version of the programme, adding dynamic height improves the accuracy of the calculation. |
@PaulMBarker Thanks for the info. I completely forgot to check for subroutines. |
The 2 temperature freezing functions
are Fortran specific (as per TEOS-10/GSW-Fortran#4) and within the C-code could be renamed to
without loss of functionality. |
Closed by #10. |
I am working on an automated wrapping of the C code in Python, in the course of which I find some C functions that could be updated in various ways to better match the matlab, and some functions that I suspect are left over from earlier versions; they have no matching m-files. The functions I have encountered so far are:
In C only? Obsolete? Delete?
Extra (optional) arguments in matlab:
I could make PRs for such changes to bring the C closer to the current matlab; would they be welcome? (I would probably not do anything about optional output arguments; in the one case that comes to mind, it is a nearly-useless validity flag that can be obtained separately.) The method to be used for handling optional arguments is open to discussion. Options include using separate functions for each signature, or using a single variadic signature.
My priority is in the basic functionality, especially the simple scalar functions; for some of the more complex functions, including most that operate on profiles, I think that re-implementation in Python will be adequate for my purposes.
The text was updated successfully, but these errors were encountered: