home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 211109010

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/790#issuecomment-211109010 https://api.github.com/repos/pydata/xarray/issues/790 211109010 MDEyOklzc3VlQ29tbWVudDIxMTEwOTAxMA== 2443309 2016-04-17T20:34:31Z 2016-04-17T20:34:31Z MEMBER

Thanks for the comments @IamJeffG. I haven't had any time recently to mess around with this so I haven't made any progress since the original notebook.

It's not good to assume a negative y-step size. Rarely, I will come across a dataset that breaks convention with a positive y coordinate, meaning the first pixel is the lower-left corner, but at least the dataset is self-consistent. Rasterio works beautifully even with these black sheep, so we don't want an xarray reader to force the assumption.

Agreed. My notebook was just a quick example of how this could work and it would certainly benefit from some generalization when applying this as an xarray backend.

In a past life I made side library that wraps rasterio's API to take and return xarray.DataArrays. It provides IO/clip/warp/rasterize operations on DataArrays, which themselves are annotated with the CRS and affine transforms as attributes.

Interesting. Any chance that's available for public viewing?

Even if xarray's new rasterio backend only provides a reader ...

I only want to expose the reader and the necessary metadata to use the georeferenced dataset. Warping and other projection transformations would need to be handled downstream.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  140063713
Powered by Datasette · Queries took 2.333ms · About: xarray-datasette