Skip to content

solo.read_TNR()/SolO QLI: Sometimes presumed incorrect return data #138

Description

@ErikPGJ

Step 1: Latest code?

  • [ X] This issue is present in the most recent code (i.e. after running git pull this is still a problem).

Step 2: Describe your environment

  • irfu-matlab branch (e.g. master, devel): devel
  • Matlab version used (e.g. Matlab R2020b): MATLAB R2019b
  • Operating system (e.g. Windows 10, Mac OS X 10.15.6, Linux Ubuntu 20.04): Linux Ubuntu 22.04.4 LTS
  • [ X] A 64-bit installation of Matlab was used.

Step 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 local devel 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 (use solo.db_get_ts() (and solo.qli.utils.read_constant_metadata())).

Observations in general when plotting spectra (irf_spectrogram()) after refactoring:

  • More sections with constant spectrum
  • Some new rectangular "holes" (white, unfilled)
  • Some sections are unaltered.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions