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

Fix Deramp #202

Merged
merged 6 commits into from
Aug 19, 2021
Merged

Fix Deramp #202

merged 6 commits into from
Aug 19, 2021

Conversation

rhugonnet
Copy link
Contributor

Deramping was not correcting tilts properly.

Output of Deramp before fix

Screenshot from 2021-08-13 15-29-38
Screenshot from 2021-08-13 14-39-44

After fix

Screenshot from 2021-08-13 15-14-55

Now I can see my jitter quite clearly!
Still need to deal with that one 😅

Further steps

We need more tests, and more plotting functionalities to check our outputs! They are quite complex spatially, so just relying on some calculations through pytest routines is probably not enough (at least for their initial setup)

@erikmannerfelt erikmannerfelt merged commit 08a1f38 into GlacioHack:main Aug 19, 2021
@@ -1055,15 +1056,14 @@ def residuals(coefs: np.ndarray, x_coords: np.ndarray, y_coords: np.ndarray, tar
ddem = ddem[indices]

# Optimize polynomial parameters
coefs = scipy.optimize.fmin(
coefs = scipy.optimize.leastsq(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I wonder why fmin was used here... I checked and it doesn't seem to come from my older implementation...

@rhugonnet rhugonnet deleted the deramp_fix branch September 6, 2021 13:21
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.

None yet

3 participants