radio-astro-tools / pvextractor

Position-Velocity diagram extract (but it can slice out other things too)
BSD 3-Clause "New" or "Revised" License
16 stars 13 forks source link

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

Open Tiantian92 opened 11 months ago

Tiantian92 commented 11 months ago

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!