-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexError: list index out of range #277
Comments
Hello @linxiongecu! I'm glad you were able to get some data downloaded. Do you know which file (or list of files) is causing this issue? Then I may be able to download the same granule to try and reproduce the issue. Could you also provide me with the output of |
Thanks for providing the file and output. It allowed me to reproduce the IndexError and start debugging. It turns out there was a mismatch in list lengths that was causing the issue. I've resolved that (see this branch). Another error has arisen due to the longer path lengths of variables in ATL08 versus the datasets I'd initially tested on. I'll continue working through that error next, and we should be able to get these fixes through in the next release (I'm planning for one this week or next). |
Update: the issue is that when Xarray reads in a deeper layer variable (e.g. gtXY/land_segments/canopy/variable), it brings the dimensions (here, delta_time is the one we need) in without coordinates, because the coordinates live a level higher at gtXY/land_segments/delta_time. As best I understand it, Xarray cannot read in multiple hdf5 groups at once, so the solution will be to bring the two groups into separate DataSets and merge them. Work is ongoing... |
Sure. I can review that! Thanks for adding me! |
Awesome - thanks! You should have gotten an invite email. |
Hello @linxiongecu! Could you please give an indication if you're still able to review the PR fixing this issue, and if so, when you anticipate you will be able to? I usually give people a few weeks, but we have an event coming up in 1.5 weeks and I'd like to have as many bug fixes released before the event as possible. Thanks! |
Hi, @JessicaS11 , do you have any instructions for the reviewing process? I am new to this and not know how to do it. Thank you! |
Hello @linxiongecu.
Yes and no. GitHub has some instructions for navigating the pull request and providing feedback. I'm currently working on a more complete guide (which will live in The Turing Way), but unfortunately it's not fully drafted yet. For this PR, our primary goal is to make sure that the issues you were having are fixed. Following @weiji14's suggestion, if you run I'm happy to help in any way I can!
Thanks for being willing to take this on. We greatly appreciate the contribution! |
@JessicaS11 I have got into the same issue with I have went over your changes and they seem ok. Can I go over this review too? |
Hi @JessicaS11 : |
Are you using Anaconda/Miniconda's Pip, or from another Python install?
Em seg., 14 de mar. de 2022 às 08:40, linxiongecu ***@***.***>
escreveu:
I tried: pip install https://github.com/icesat2py/icepyx/archive/debug.zip
But get a warning: WARNING: Built wheel for icepyx is invalid: Metadata
1.2 mandates PEP 440 version, but 'unknown' is not
When I call: reader.load(), there is no error but the kernel will die and
need to restart.
—
Reply to this email directly, view it on GitHub
<#277 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABWF7JZHEKBXBJHNGQWJ7XDU74XUNANCNFSM5OLYH3VQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
<https://about.me/ricardobarroslourenco?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=edit_panel&utm_content=thumb>
Ricardo Barros Lourenço
about.me/ricardobarroslourenco
<https://about.me/ricardobarroslourenco?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=edit_panel&utm_content=thumb>
|
Sorry, gave the wrong command. Try doing Oh and thanks for chipping in @ricardobarroslourenco! Feel free to review the code over at #281. See @JessicaS11's tips at #277 (comment) on how you can get started. |
@weiji14 Thanks for the instruction. Installation works now. |
Cool, could you copy and paste the code that shows how you are calling load()? Just want to see what's happening. |
import icepyx as ipx
import os
####need h canopy , lat , lon
import h5py
#read data
path_root = 'C:/Users/xiongl21/WorkingFolder/Postdoc/Icesat2/MyTutorial/Test/data'
pattern = "processed_ATL{product:2}_{datetime:%Y%m%d%H%M%S}_{rgt:4}{cycle:2}{orbitsegment:2}_{version:3}_{revision:2}.h5"
reader = ipx.Read(path_root, "ATL08", pattern) # or ipx.Read(filepath, "ATLXX") if your filenames match the default pattern
#h_canopy
#
reader.vars.append(var_list=["latitude", "longitude", "h_canopy"])
reader.vars.wanted
ds = reader.load() |
Hmm, so I tried running this on |
That would be great - thanks for the offer and getting involved in this conversation. Check your email for an org invite. |
Hi @JessicaS11 and @weiji14 ! Thanks for the instructions. I have just accepted the invite and will be going over the PR review. |
Hi, I got 'IndexError' when I am trying to read most recent ATL08 data products using 'load' from icepys.
The text was updated successfully, but these errors were encountered: