-
Notifications
You must be signed in to change notification settings - Fork 29
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
NameError: name 'i1' is not defined #73
Comments
Same issue here |
sorry @GKG1312 and @ChaoEcohydroRS, not sure how I didn't see this. I'm putting in a PR #75 to hopefully fix this for you. |
Hi @tsutterley,
This error is raised in the following lines of code:
I checked the variables and found that |
yep should just be |
thanks for tracking these down! I haven't touched these notebooks in a while since sliderule now has most of the functionality |
Hi Tyler
In Fit ICESat-2 ATL03.ipynb file while running the Calculate average surface height for each beam section I am getting error corresponding to variable initialization.
There is no previous initialization of variable i1 before it is used in line
if np.any((dem_h[i1[i2]] >= (tlm_bot_band-tlm_buffer)) & (dem_h[i1[i2]] <= (tlm_top[b][idx]+tlm_buffer))):
The error is stated as:
`---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Input In [13], in <cell line: 2>()
681 for b in ['band1','band2']:
682 # bottom of the telemetry band for major frame
683 tlm_bot_band = tlm_top[b][idx] - tlm_height[b][idx]
--> 684 if np.any((dem_h[i1[i2]] >= (tlm_bot_band-tlm_buffer)) &
685 (dem_h[i1[i2]] <= (tlm_top[b][idx]+tlm_buffer))):
686 # add telemetry height to window width
687 h_win_width += tlm_height[b][idx]
688 # photon indices for major frame (buffered by 1 frame on each side)
689 # do not use possible TEP photons in photon classification
NameError: name 'i1' is not defined`
Thanks
Girish
The text was updated successfully, but these errors were encountered: