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

3D render fails with certain parameters #39

Open
asazernik opened this issue Dec 22, 2024 · 0 comments
Open

3D render fails with certain parameters #39

asazernik opened this issue Dec 22, 2024 · 0 comments

Comments

@asazernik
Copy link

Seems to be an off-by-one error with certain combinations of sample rates and input sizes. Regular, non-3d graph (ie code offset without doppler) works fine.

% python/pocket_acq.py -f 4 -sig L1CA -prn 25 -3d -d 10000  ~/Downloads/gpsl1.iq
Traceback (most recent call last):
  File "/home/asa/src/PocketSDR/python/pocket_acq.py", line 365, in <module>
    plot_corr_3d(ax1, P, dops, coffs, ix, fc)
  File "/home/asa/src/PocketSDR/python/pocket_acq.py", line 131, in plot_corr_3d
    ax.plot_surface(x, y, z, rstride=1, cstride=1, cmap='Greys', vmax=2, lw=0.1, edgecolor='k')
  File "/usr/lib/python3/dist-packages/mpl_toolkits/mplot3d/axes3d.py", line 1389, in plot_surface
    X, Y, Z = np.broadcast_arrays(X, Y, Z)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/numpy/lib/stride_tricks.py", line 540, in broadcast_arrays
    shape = _broadcast_shape(*args)
            ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/numpy/lib/stride_tricks.py", line 422, in _broadcast_shape
    b = np.broadcast(*args[:32])
        ^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: shape mismatch: objects cannot be broadcast to a single shape.  Mismatch is between arg 0 with shape (81, 4001) and arg 2 with shape (81, 4000).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant