spedas / bleeding_edge

IDL-based Space Physics Environment Data Analysis Software (bleeding edge)
http://www.spedas.org
Other
7 stars 0 forks source link

Crash loading MMS EDP data #58

Closed ericthewizard closed 1 year ago

ericthewizard commented 1 year ago

Looking into some failing tests, it looks like there's an issue with MMS EDP data:

mms_load_edp, trange=['2015-12-10', '2015-12-20'], probe=1

Throws an error:

% CDF_VARNUM: Cannot find variable: mms1_edp_dce_dsl_EdotBres_fast_l2. SPD_MMS_CDF_LOAD_VARS(313): variable "mms1_edp_dce_dsl_EdotBres_fast_l2" not found! % Unable to concatenate variables because the dimensions do not agree: <FLOAT Array[1622464, 3]>. % Execution halted at: SPD_MMS_CDF_LOAD_VARS 304 /Users/eric/trunk/general/CDF/spd_mms_cdf_load_vars.pro % SPD_CDF2TPLOT 66 /Users/eric/trunk/general/CDF/spd_cdf2tplot.pro % MMS_LOAD_DATA 383 /Users/eric/trunk/projects/mms/common/load_data/mms_load_data.pro % MMS_LOAD_EDP 99 /Users/eric/trunk/projects/mms/edp/mms_load_edp.pro % $MAIN$

ericthewizard commented 1 year ago

This one should be fixed now in IDL and Python. There are a mixture of incompatible EDP files (v2.x.x and v3.x.x) at the SDC/SPDF. I've updated the EDP load routines to only load the latest major version available in the time range to fix the problem (the older files can still be accessed by setting the cdf_version keyword to load them specifically).