Closed jameswilburlewis closed 2 months ago
A possible fix might be to skip the variable if x_axis_var is not in load_cdf_variables.
Also, some master CDFs seem to set Variable_Type to "Ignore Data" for problem variables -- we should probably check that case too.
See commented-out test_load_idm_data in de2/tests/tests.py
Missing x_axis_var now skips the variable instead of crashing. Ignoring var_type=='ignore_data' was already implemented. The DE2 IDM example now works, and that test has been enabled in the DE2 test suite.
See: https://github.com/spedas/pyspedas/issues/840
DE2 IDM CDFs have bad DEPEND_0 attributes for some variables. This currently causes a crash in cdf_to_tplot:
We should check that x_axis_var exists before calling varinq on it, so we can avoid the exception, log a sensible error message, and move on to the next variable.