Skip to content

WIP: Array.as_xarray#95

Draft
kylebarron wants to merge 2 commits intomainfrom
kyle/as-xarray
Draft

WIP: Array.as_xarray#95
kylebarron wants to merge 2 commits intomainfrom
kyle/as-xarray

Conversation

@kylebarron
Copy link
Member

This is just a proof of concept.

Change list

  • Add Array.as_xarray method, returning a DataArray
    • Set index via rasterix
    • Set projection info via xproj
  • How do we represent nodata and mask? Depending on rioxarray is probably a non-starter, because I don't think we should be depending on rasterio.

@dcherian
Copy link

What's the difference between nodata and mask?

@kylebarron
Copy link
Member Author

kylebarron commented Feb 22, 2026

What's the difference between nodata and mask?

Nodata is a single value, i.e. 0 or NaN or 255 used as a sentinel value. Mask is a boolean array that has shape (height, width, 1) and has a boolean for whether each pixel is valid/invalid.

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.

2 participants