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

NPI-3655 Bring in remove_offline_sats(), add option in SP3 diff processing to avoid crashing cubic interpolator for velocity #61

Merged
merged 5 commits into from
Dec 23, 2024

Conversation

treefern
Copy link
Collaborator

This PR brings in remove_offline_sats() from the other codebase, and adds options to diff_sp3_rac() to remove offline / partial nodata sats before running an SP3 diff. This is important because NaN / non-finite position data crashes the cubic interpolator used for velocity calculations.

A warning is now logged when using the cubic interpolator but not also enabling the option to remove offline sats.

… general SP3 processing. Add option to remove offline sats when diffing SP3s, to avoid cubic velocity interpolator crashes. Add warning when using the cubic interpolator but not removing offline sats.
@treefern treefern requested a review from ronaldmaj December 18, 2024 07:27
@treefern treefern self-assigned this Dec 18, 2024
@@ -191,6 +191,23 @@ def sp3_clock_nodata_to_nan(sp3_df: _pd.DataFrame) -> None:
sp3_df.loc[nan_mask, ("EST", "CLK")] = _np.nan


def remove_offline_sats(sp3_df: _pd.DataFrame):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we have an unit test on this one to make sure it works as expected?
Needs maybe 2 epochs, 2 satellite one with 0.

@treefern
Copy link
Collaborator Author

Further testing revealed this wasn't working as intended, due to only handling the raw representation of POS nodata, not handling NaNs. Updated.

Copy link
Collaborator

@seballgeyer seballgeyer left a comment

Choose a reason for hiding this comment

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

Looks good now.
Did some very quick test.

@treefern treefern changed the title NPI-3655 Bring in remove_offline_sats(), add option to avoid crashing cubic interpolator when NPI-3655 Bring in remove_offline_sats(), add option in SP3 diff processing to avoid crashing cubic interpolator for velocity Dec 23, 2024
@treefern treefern merged commit 3351248 into main Dec 23, 2024
4 checks passed
@treefern treefern deleted the NPI-3655-migrate-offline-sats-func branch December 23, 2024 02:27
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