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

Cast single-band Raster to 2D #360

Closed
wants to merge 173 commits into from
Closed

Conversation

rhugonnet
Copy link
Contributor

@rhugonnet rhugonnet commented Apr 6, 2023

Branched and re-merged into #351

This PR:

  • Casts all single-band rasters from 3D to 2D when passed to the setter of Raster.data, or when used in an arithmetic operation that call Raster._overloading_check,
  • Fixes some function behaviour and tests due to the previous point,
  • Removes the option of having a list or tuple for Raster.nodata (as only int or float are used, anyway),
  • Fixes some minor typing issues.

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

Successfully merging this pull request may close these issues.

None yet

1 participant