Skip to content
Discussion options

You must be logged in to vote

Thanks, that put me on the right track but it doesn't have the coords set. This is what the DataArray looks like when I load it with open_rasterio:

<xarray.DataArray (band: 1, y: 6736, x: 4210)>
[28358560 values with dtype=uint8]
Coordinates:
  * band         (band) int64 1
  * x            (x) float64 2.601e+05 2.601e+05 ... 3.863e+05 3.863e+05
  * y            (y) float64 4.907e+06 4.907e+06 ... 4.705e+06 4.705e+06
    spatial_ref  int64 0
Attributes:
    scale_factor:  1.0
    add_offset:    0.0

And this is what the one you suggested is

<xarray.DataArray (y: 6735, x: 4210)>
array([[1, 1, 1, ..., 1, 1, 1],
       [1, 1, 1, ..., 1, 1, 1],
       [1, 1, 1, ..., 1, 1, 1],
       ...,
       [

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@snowman2
Comment options

@jessjaco
Comment options

Answer selected by jessjaco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants