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

open_rasterio: Need to move Affine object to left side #3449

Closed
snowman2 opened this issue Oct 25, 2019 · 2 comments
Closed

open_rasterio: Need to move Affine object to left side #3449

snowman2 opened this issue Oct 25, 2019 · 2 comments

Comments

@snowman2
Copy link
Contributor

MCVE Code Sample

xarray.open_rasterio(...)

Problem Description

Need to move the transform to the left side.

Warning:

DeprecationWarning: Right multiplication will be prohibited in version 3.0
    x, _ = (np.arange(nx) + 0.5, np.zeros(nx) + 0.5) * transform

Should be:

 x, _ = transform * (np.arange(nx) + 0.5, np.zeros(nx) + 0.5)
@dcherian
Copy link
Contributor

Thanks. This is fixed on master by #3428

@snowman2
Copy link
Contributor Author

Nice!

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