irfu / irfu-matlab

Matlab routines to work with space data, particularly with MMS and Cluster/CAA data. Also some general plasma routines.
56 stars 46 forks source link

SolO IRFU quicklooks: Data length must be larger than 15 samples #97

Closed ErikPGJ closed 1 year ago

ErikPGJ commented 1 year ago

Step 1: Latest code?

Step 2: Describe your environment

Step 3: Describe the problem

Expected behavior

Shoud not crash.

Actual behavior

Crashes with log messages

irf_ebsp ... calculate B wavelet transform ....Done.
  [warning: solo_db.get_variable/append_sci_var(131)] Discarded 1 data points
  [warning: solo_db.get_variable/append_sci_var(131)] Discarded 1 data points
  [warning: get_variable(60)] dataobj:get_variable:cyclic_depCyclic dependecy: Epoch <-> Half_interval
  [warning: get_variable(60)] dataobj:get_variable:cyclic_depCyclic dependecy: Epoch <-> Half_interval
  [warning: get_variable(60)] dataobj:get_variable:cyclic_depCyclic dependecy: Epoch <-> Half_interval
  [warning: get_variable(60)] dataobj:get_variable:cyclic_depCyclic dependecy: Epoch <-> Half_interval
  [warning: get_variable(60)] dataobj:get_variable:cyclic_depCyclic dependecy: Epoch <-> Half_interval
  [warning: get_variable(60)] dataobj:get_variable:cyclic_depCyclic dependecy: Epoch <-> Half_interval
  [warning: get_variable(60)] dataobj:get_variable:cyclic_depCyclic dependecy: Epoch <-> Half_interval
  [warning: get_variable(60)] dataobj:get_variable:cyclic_depCyclic dependecy: Epoch <-> Half_interval
purging solo_L3_rpw-bia-efield-10-seconds_20220106_V01.cdf
purging solo_L3_rpw-bia-density-10-seconds_20220106_V01.cdf
purging solo_L2_mag-rtn-normal_20220106_V01.cdf
purging solo_L2_swa-pas-grnd-mom_20220106_V03.cdf
purging solo_L2_swa-pas-eflux_20220106_V02.cdf
purging solo_L2_rpw-tnr-surv-cdag_20220106_V04.cdf
  [warning: solo_db.get_variable/append_sci_var(131)] Discarded 4485 data points
[irf_filt(63) : proc] using 5-th order ellip lowpass filter
exception.message=Data length must be larger than 15 samples.
getCoeffsAndInitialConditions, row 228
efiltfilt, row 129
filtfilt, row 89
irf_filt, row 114
TSeries.filt/filt_, row 1462
TSeries.filt, row 1448
TSeries.subsref, row 324
quicklooks_24_6_2_h, row 68
quicklook_main, row 228
Command exited with non-zero status 99`

Triggered by call solo.quicklook_main('', '/data/solo/data_yuri/', '/home/erjo/temp/qli/so_qli_MTEST.2022-08-05_13.15.17', '1', '1', '2022-01-01T00:00:00', '2022-02-01T00:00:00');

Last completed plots are for 2022-01-17, which implies that it is probably data for 2022-01-18 that triggers the bug.

ErikPGJ commented 1 year ago

The call solo.quicklook_main('/home/erjo/so_irfu-matlab_qli//mission/solar_orbiter/+solo/irf_logo.png', '/data/solo/data_yuri/', '/home/erjo/temp/so_qli/so_qli_MTEST.2022-08-29_13.18.41._2022-01-17---2022-01-19', '1', '1', '2022-01-17T00:00:00', '2022-01-19T00:00:00') seems to work with c1bd4e3d (spis) so the bug has presumably been fixed.