Skip to content

Commit

Permalink
SolO QLI: ~Bugfix: Add "-cdag" when needed for "file prefixes"
Browse files Browse the repository at this point in the history
Add "-cdag" to arguments to solo.db_get_ts() to handle ~shortcoming in
solo.db_get_ts().

modified:   +solo/+qli/generate_quicklooks_all_types.m
  • Loading branch information
ErikPGJ committed Mar 12, 2024
1 parent afea6ee commit db7c5b0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions mission/solar_orbiter/+solo/+qli/generate_quicklooks_all_types.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
% * Note: 7-day quicklooks always begin with a specific hardcoded weekday
% (Wednesday as of 2024-03-07).
% * Overwrites pre-existing quicklook files without warning.
% * ~BUG: SolO DB (solo.db_get_ts() etc.) requires the caller to specify
% dataset_ID plus "-cdag" if present, but does not raise exception if wrong.
% ==> The code requires the datasets searched by SolO DB to have/lack "-cdag"
% exactly as specified (hardcoded). If they are not, then data appears to not
% be present and no exception is raised! This means that the code might not
% recognize datasets for the path specified with solo.db_init().
%
%
% ARGUMENTS
Expand Down Expand Up @@ -319,9 +325,9 @@ function generate_quicklooks_24h_6h_2h_local(Dt, vht1h, OutputPaths, irfLogoPath

Data.Vrpw = vht1h.V_RPW_1h.tlim(Tint);
% E-field
Data.E = db_get_ts( 'solo_L3_rpw-bia-efield-10-seconds', 'EDC_SRF', Tint);
Data.E = db_get_ts( 'solo_L3_rpw-bia-efield-10-seconds-cdag', 'EDC_SRF', Tint);
% RPW density
Data.Ne = db_get_ts( 'solo_L3_rpw-bia-density-10-seconds', 'DENSITY', Tint);
Data.Ne = db_get_ts( 'solo_L3_rpw-bia-density-10-seconds-cdag', 'DENSITY', Tint);
% B-field
Data.B = db_get_ts( 'solo_L2_mag-rtn-normal', 'B_RTN', Tint);
% Proton & alpha temperature
Expand Down Expand Up @@ -375,9 +381,9 @@ function generate_quicklook_7days_local(Dt, vht6h, OutputPaths, irfLogoPath)

Data.Vrpw = vht6h.V_RPW.tlim(Tint);
% E-field:
Data.E = db_get_ts( 'solo_L3_rpw-bia-efield-10-seconds', 'EDC_SRF', Tint);
Data.E = db_get_ts( 'solo_L3_rpw-bia-efield-10-seconds-cdag', 'EDC_SRF', Tint);
% RPW density:
Data.Ne = db_get_ts( 'solo_L3_rpw-bia-density-10-seconds', 'DENSITY', Tint);
Data.Ne = db_get_ts( 'solo_L3_rpw-bia-density-10-seconds-cdag', 'DENSITY', Tint);
% B-field:
Data.B = db_get_ts( 'solo_L2_mag-rtn-normal-1-minute', 'B_RTN', Tint);
% Proton & alpha temperature:
Expand Down

0 comments on commit db7c5b0

Please sign in to comment.