-
Notifications
You must be signed in to change notification settings - Fork 47
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
solo.read_TNR()/SolO QLI: Sometimes presumed incorrect return data #138
Comments
Inspecting and comparing the execution of different versions of
|
cdfdump on what should be the relevant file gives for Epoch:
i.e. 172336 CDF records, which is different compared to both of above. |
27365468 Erik P G Johansson (2024-03-27 14:06:52 +0100) SolO QLI: Cleanup (mostly tests)
==> 261 CDF records <> 172075-170961 = 1114 CDF record difference above! It is is consistent with above if looking at timestamps. Old code |
It seems that
It is still strange why the remainder of the read_TNR() is so sensitive to this. |
Disabling (commenting out) below section in
|
Having read_TNR() read all zVariables through Is the non-CDF-reading processing in solo.read_TNR() very sensitive to adding data at the beginning?! Try artificially truncating data at beginning of day when using |
Artificially constraining the time interval to the old effective interval (stemming from one day-CDF, but also truncate at midnight), but using Note:
|
And to confirm, they are completely identical as one may suspect.
Thus, the additional data from the previous CDF (the first ~two minutes of data spilling over from the previous day file) must be the problem. |
FYI, @JordiBoldu , there seems to be a bug in
It makes a difference for 2023-01-27 data where only the last jump of three in
|
@JordiBoldu Applying above bugfix for most recent version of solo.read_TRN() yields below figure which superficially looks like an improvement. The vertical white stripes (holes?) are new and unknown: |
Footnote: Previously mentioned local commit |
Pushed the (incomplete) bugfix in |
Note that the plotting code contains odd size checks on Could potentially be used as a way of searching for data which triggers bugs. generate_quicklooks_24h_6h_2h.m
generate_quicklook_7days.m:
|
There is an issue with the data size after read_TNR does the merging of the 2 sensor channels. It is not clear where the issue comes from, but it seems to be due to different sensor configurations not being compatible. |
In hindsight, the issue description is misleading since (most likely) all of this is due to pre-existing bug(s) in the Footnote: Homepage currently uses version |
Footnote: The homepage currently uses version |
Step 1: Latest code?
git pull
this is still a problem).Step 2: Describe your environment
master
,devel
): develMatlab R2020b
): MATLAB R2019bWindows 10
,Mac OS X 10.15.6
,Linux Ubuntu 20.04
): Linux Ubuntu 22.04.4 LTSStep 3: Describe the problem
solo.read_TNR()
for commit '67472823 Erik P G Johansson (2024-01-18 14:43:31 +0100) BICAS: Cleanup (2)' appears to work as intended for 2023-01-27 (reproduces (essentially) the same spectrogram in regenerated quicklooks as in much older quicklooks).solo.read_TNR()
in most recent localdevel
commit (27365468 Erik P G Johansson (2024-03-27 14:06:52 +0100) SolO QLI: Cleanup (mostly tests)
(not yet pushed) does not return the same data as before recent refactoring.Note: The recent refactoring (
f1f73cb8 Erik P G Johansson (2024-03-22 11:34:59 +0100) SolO QLI, solo.read_TNR: Use SolO DB, time interval length, no exc.
) made the function use SolO DB instead of locating and reading CDFs directly (usesolo.db_get_ts()
(andsolo.qli.utils.read_constant_metadata())
).Observations in general when plotting spectra (irf_spectrogram()) after refactoring:
Unclear if this is due to changes in underlying data or in code.
Steps to reproduce:
Ex: SolO RPW TNR data (solo_L2_rpw-tnr-surv) for 2023-01-27, but comparisons of old and new quicklooks implies that the same problem exists for many other dates too.
Relevant code:
The problem should be contained entirely in the call to solo.read_TNR() (including code indirectly called by beforementioned function).
Note: solo.read_TNR() is used by QLI (IRFU Quicklooks), and the results are displayed in panel 10 in 24h/6h/2h quicklooks and panel 9 for 7-day quicklooks.
The refactored (suspicious/buggy) version is not yet used for homepage as of 2024-03-28.FYI, @JordiBoldu
The text was updated successfully, but these errors were encountered: