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

ValueError: "Non-square pixels. Please resample data." #121

Open
Tiantian92 opened this issue Nov 26, 2023 · 0 comments
Open

ValueError: "Non-square pixels. Please resample data." #121

Tiantian92 opened this issue Nov 26, 2023 · 0 comments

Comments

@Tiantian92
Copy link

Hello,
I meet a problem with this :
[File ~/Library/Python/3.9/lib/python/site-packages/pvextractor/utils/wcs_utils.py:21, in get_spatial_scale(wcs, assert_square)
19 np.testing.assert_almost_equal(abs(scale[0,0]), abs(scale[0,1]))
20 except AssertionError:
---> 21 raise ValueError("Non-square pixels. Please resample data.")
23 return abs(scale[0,0]) * u.Unit(wcs.wcs.cunit[0])

ValueError: Non-square pixels. Please resample data. ]
How should I resample the data?
My pixel size is 0.58 arcsecond. I am not sure if this is related with my python version.

Looking forward hearing from of you!

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