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/pull/2287#issuecomment-405414950,https://api.github.com/repos/pydata/xarray/issues/2287,405414950,MDEyOklzc3VlQ29tbWVudDQwNTQxNDk1MA==,1217238,2018-07-16T23:49:02Z,2018-07-16T23:49:02Z,MEMBER,"OK, maybe this would indeed be an appropriate approach if you want to support writing files with our current interface. Unfortunately, our current interface is indeed very inadequate for such use-cases -- as you have no-doubt noticed! This is on our soon to be published roadmap to fix, but it will be a longer process.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,341321742
https://github.com/pydata/xarray/pull/2287#issuecomment-405304149,https://api.github.com/repos/pydata/xarray/issues/2287,405304149,MDEyOklzc3VlQ29tbWVudDQwNTMwNDE0OQ==,10050469,2018-07-16T16:22:42Z,2018-07-16T16:22:42Z,MEMBER,"> Generally, image containers opened by imageio represents a single Dataset only, which is why I default names to their readout sequences. However, there are indeed cases where multiple variables exist, such as pyramids of image sequences, each pyramid layer represents a different resolution for the sequence.
Can you show some examples of how imageio works:
- in the case of a single array
- in the case of multiple variables
?
> However, it is my understanding, and please correct me if I am wrong, that rasterio backend is aimed at being a read-only I/O for xarray without having the extensibility for write ability, and I'm really eager to keep the ability to aggregate multiple files through dask, as well as saving data through imageio transparently (if plausible) :p
This can be done regardless. You can add ``open_imageio`` and ``to_imageio`` methods to ``DataArrays``/``Datasets`` without the existing abstractions which were written for NetCDF-like files.
Do you already have an idea of how the ``to_imageio`` API would look like? This looks quite a complex topic...
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,341321742
https://github.com/pydata/xarray/pull/2287#issuecomment-405288100,https://api.github.com/repos/pydata/xarray/issues/2287,405288100,MDEyOklzc3VlQ29tbWVudDQwNTI4ODEwMA==,1217238,2018-07-16T15:33:24Z,2018-07-16T15:33:24Z,MEMBER,"Yes, I would recommend taking a look at `open_rasterio()` for an example of reading image files. The other backend examples map much more closely to the netCDF data model.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,341321742
https://github.com/pydata/xarray/pull/2287#issuecomment-405106658,https://api.github.com/repos/pydata/xarray/issues/2287,405106658,MDEyOklzc3VlQ29tbWVudDQwNTEwNjY1OA==,10050469,2018-07-15T17:46:32Z,2018-07-15T17:46:32Z,MEMBER,"Thanks! Without looking into too much detail (yet), I think it would be a great addition!
Correct me if I'm wrong, but I wonder if xarray's [rasterio backend](https://github.com/pydata/xarray/blob/master/xarray/backends/rasterio_.py) wouldn't be a better template for an imageio backend instead. For example, can imageio open any file which resembles a Dataset (i.e.: more than one variable with different datatypes), or would a DataArray be enough?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,341321742