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

BucketResampler doesn't accept numpy arrays. #459

Open
faisalalnasser13 opened this issue Oct 9, 2022 · 1 comment
Open

BucketResampler doesn't accept numpy arrays. #459

faisalalnasser13 opened this issue Oct 9, 2022 · 1 comment

Comments

@faisalalnasser13
Copy link

lon_swath, lat_swath  = swath_def.get_lonlats()
resampler = BucketResampler(target_area, lon_swath, lat_swath)

Gives following error.

121 result = da.map_blocks(self._get_proj_coordinates, lons, lats,

--> 122 new_axis=0, chunks=(2,) + lons.chunks)
123 proj_x = result[0, :]
124 proj_y = result[1, :]

AttributeError: 'numpy.ndarray' object has no attribute 'chunks'

...

Problem was solved by changing the arrays to Dask arrays.

@djhoese
Copy link
Member

djhoese commented Oct 9, 2022

This is a known limitation that is not documented. Thanks for filing the bug report. It is on our TODO list to clean this up.

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

2 participants