icepyx: IndexError: list index out of range

Hi, I got ‘IndexError’ when I am trying to read most recent ATL08 data products using ‘load’ from icepys.

ds = reader.load()

  File "C:\Users\xiongl21\Miniconda3\envs\icepyx-env\lib\site-packages\icepyx\core\read.py", line 443, in load
    self._build_single_file_dataset(file, groups_list)
  File "C:\Users\xiongl21\Miniconda3\envs\icepyx-env\lib\site-packages\icepyx\core\read.py", line 560, in _build_single_file_dataset
    is2ds = Read._add_var_to_ds(
  File "C:\Users\xiongl21\Miniconda3\envs\icepyx-env\lib\site-packages\icepyx\core\read.py", line 342, in _add_var_to_ds
    grp_spec_vars = [
  File "C:\Users\xiongl21\Miniconda3\envs\icepyx-env\lib\site-packages\icepyx\core\read.py", line 343, in <listcomp>
    wanted_vars[i]
IndexError: list index out of range

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (14 by maintainers)

Most upvoted comments

Hi @JessicaS11 and @weiji14 ! Thanks for the instructions. I have just accepted the invite and will be going over the PR review.

@ricardobarroslourenco

I have went over your changes and they seem ok. Can I go over this review too?

That would be great - thanks for the offer and getting involved in this conversation. Check your email for an org invite.

Sorry, gave the wrong command. Try doing pip uninstall icepyx first, and then pip install git+https://github.com/icesat2py/icepyx.git@debug instead. Newer versions of pip > 21.0 makes things tricky (see https://github.com/pypa/pip/issues/8368).

Oh and thanks for chipping in @ricardobarroslourenco! Feel free to review the code over at #281. See @JessicaS11’s tips at https://github.com/icesat2py/icepyx/issues/277#issuecomment-1065247400 on how you can get started.