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

Native resampler fails with 3D DataArrays #465

Closed
djhoese opened this issue Oct 16, 2018 · 0 comments · Fixed by #468
Closed

Native resampler fails with 3D DataArrays #465

djhoese opened this issue Oct 16, 2018 · 0 comments · Fixed by #468

Comments

@djhoese
Copy link
Member

djhoese commented Oct 16, 2018

Describe the bug
The native resampler fails to resample (replicate) any RGB or other DataArray with more than two dimensions. I think I have a solution, but need to test. Making this issue in case this turns out to be more annoying than I think it is.

To Reproduce

scn = Scene(reader='abi_l1b', filenames=[...])
scn.load(['airmass', 'natural_color'])
new_scn = scn.resample(resampler='native')

Expected behavior
No exception.

Actual results

  File "/Users/davidh/repos/git/satpy/satpy/resample.py", line 264, in resample
    return self.compute(data, cache_id=cache_id, **kwargs)
  File "/Users/davidh/repos/git/satpy/satpy/resample.py", line 778, in compute
    repeats[data.dims.index('bands')]
KeyError: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant