-
Notifications
You must be signed in to change notification settings - Fork 21
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
Function get_hpc_info should return interpolated values when time range fully between two measurements #151
Comments
Here is a small script to illustrate that issue:
All three results should be very similar... |
So the code does do the interpolation but ignores it because there is no SAS solution in the time range and the code mistakenly interprets this as a bad SAS solution. I can fix this relatively easily but it does raise another question what you end up interpolating between two bad SAS solutions? In the second case in the example L123-124 stixpy/stixpy/coordinates/transforms.py Lines 123 to 147 in 95c342b
|
The interpolated value should be used only if the aspect solutions before and after are both "ok". |
I might just filter out all the bad SAS solutions earlier, is the a case where they might be needed? |
No, I think it's a safe approach. |
As first noticed by @jajmitchell the function get_hpc_info sometimes returns wrong results that show strong deviation compared to results obtained one minute earlier or one minute later.
The reason is: when that function doesn't find any valid pointing measurement within the input time range, it falls back to the spacecraft pointing. But it should perform an interpolation between the previous and the next measurements (if available and marked as good, i.e. sas_ok=1) for better results.
The text was updated successfully, but these errors were encountered: