Skip to content

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

Closed
@snowman2

Description

@snowman2

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions