-
Notifications
You must be signed in to change notification settings - Fork 49
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
first velocity correction according to Rueger #142
Conversation
These two scripts load the survey data into a sqlite database of the same schema. The same code is then replicated in each script to convert the data to DynaML and identify trivial baselines.
changes include various bug fixes and including a set of queries that identifies trivial baselines in the adjustment and outputs these to a kml
multiple versions on Github. Current version on ICSM PynAdjust
@KentWheeler thanks for putting this together and congrats on your first contribution! It's going to be a good improvement. Unfortunately, the PR failed testing. I don't think it's a big thing, just a couple of things to sort out. This is not your fault because, as a first time contributor, the tests don't run automatically for you, I had to approve them running. I don't think that should be the case with your next PR (or maybe even for this one from now). Full details can be found here: https://github.com/GeoscienceAustralia/GeodePy/runs/7352898589?check_suite_focus=true There is a TypError because one of the tests is missing a parameter (frequency) and another test fails with an AssertionError, meaning that part of the code isn't working the way it should be. |
Function calculates the terms K, L and M which are the partial differentials of temperature, pressure and humidity respectively (in ppm)
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.
Hi @KentWheeler, thanks very much for all the work you've done to research EDM corrections and update this code. I've had a look and am happy that everything is working. I'll approve and merge this PR in, but I did have a couple of questions about the function mets_partial_differentials
: is this function called in any of the other functions? And if not, could we put together a new test to make sure this works as intended in future builds? Happy to discuss this further. Cheers, Josh
Thanks for looking at this Craig, I can see how to make reply to you via
GitHub, but I guess that is just my limited knowledge of the functions of
the site.
I can't see anything missing in my code. It works with my checks. But it
does remind me of when Josh told me to go ahead and modify this code. He
thought it might fail some of these tests. \
I think it must fail because the original code (And therefore the checking)
only uses a few parameters. It does not use frequency or unit length in any
of its calculations. I had found some inhouse code that would use a n n_ref
value of 1.00028 if these two parameters were not supplied. However, I
think this value has just been determined by averaging the n_ref values
supplied for all thei instruments in the Appendix of Ruegers book. I could
not find a reliable reference for using that. If I use this value with the
test.py values I get (param_c = 280.000000000058, param_d =
79.39323495020614) which are reasonable answers.
The original survey.py also uses temp, pressure and humidity in the
calculation of the C and D parameters. This does not make sense because
these are instrument parameters, somethimes specific as constants by the
manufacturere and not temperure dependant)
I can explain the AssertionError, I can only guess that this is because the
functions I modified require different parameters than the originals.
Kent
…On Sat, Jul 16, 2022 at 8:00 AM Craig Harrison ***@***.***> wrote:
@KentWheeler <https://github.com/KentWheeler> thanks for putting this
together and congrats on your first contribution! It's going to be a good
improvement. Unfortunately, the PR failed testing. I don't think it's a big
thing, just a couple of things to sort out. This is not your fault because,
as a first time contributor, the tests don't run automatically for you, I
had to approve them running. I don't think that should be the case with
your next PR (or maybe even for this one from now). Full details can be
found here:
https://github.com/GeoscienceAustralia/GeodePy/runs/7352898589?check_suite_focus=true
Here's the relevant details:
[image: image]
<https://user-images.githubusercontent.com/22949242/179325557-432ed2de-67f4-4a74-a372-2fc10f4d745e.png>
There is a TypError because one of the tests is missing a parameter
(frequency) and another test fails with an AssertionError, meaning that
part of the code isn't working the way it should be.
—
Reply to this email directly, view it on GitHub
<#142 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALT4RTVY2Z7EXHUJ6TGW6PLVUH3P7ANCNFSM53GFS4CA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The functions first_vel_params, and first_vel_corrn have been rewritten and the function part_h2o_vap_press has been added. This allows calculation of the first velocity correction using either psychrometer or hygrometer readings.
Test data shows that the calculated corection is different from the original GeodePy calculations. Therefore, the calculations have been validated by comparing results to those obtained with 'Leica Captivate TS/MS Simulator'