Skip to content
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

Fast Barnes notebook failing with array dimension error #142

Open
brian-rose opened this issue Jan 9, 2025 · 0 comments
Open

Fast Barnes notebook failing with array dimension error #142

brian-rose opened this issue Jan 9, 2025 · 0 comments
Labels
bug Issues that present a reasonable conviction there is a reproducible bug. content Content related issue

Comments

@brian-rose
Copy link
Member

The nightly builds for this Cookbook are currently failing in the Fast Barnes notebook with

Cell In[7], line 63, in grid_rhi(file, z_res, rng_res, z_limits, rng_limits, fields)
     60     data = deepcopy(np.array(radar.fields[fields[j]]['data']))
     61     # data = data.filled(np.nan)
---> 63     res_field[:,:,j] = barnes(np.asarray([rg_loc.ravel(),radar.gate_altitude['data'].ravel()]).transpose(),
     64                        data.ravel(),
     65                        100,
     66                        np.asarray([0,0]),
     67                        100,
     68                        (len(z_pts),len(rng_pts)),
     69                        method=method,
     70                        num_iter = num_iter,
     71                        min_weight=0.0002
     72                       )
     75 data_dict = {}
     76 for k in range(len(fields)):

ValueError: could not broadcast input array from shape (1100,151) into shape (151,1100)

I tried simply removing the .transpose() in #141 to see if that resolved the problem but that threw some new errors.

Someone who has access to the data and understands what this code is actually doing is going to need to take a look.

@brian-rose brian-rose added content Content related issue bug Issues that present a reasonable conviction there is a reproducible bug. labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that present a reasonable conviction there is a reproducible bug. content Content related issue
Projects
None yet
Development

No branches or pull requests

1 participant