Uh oh!
There was an error while loading. Please reload this page.
Add very minimal xarray plugin for engine="rasterio" - #281
Conversation
Codecov Report
@@ Coverage Diff @@## master #281 +/- ##
==========================================
- Coverage 93.68% 92.59% -1.09%
==========================================
Files 12 13 +1 Lines 1362 1378 +16 ==========================================
Hits 1276 1276 - Misses 86 102 +16
Continue to review full report at Codecov.
|
Uh oh!
There was an error while loading. Please reload this page.
snowman2
commented
Apr 5, 2021
One thing I am noticing in these examples is that the attributes for the |
Uh oh!
There was an error while loading. Please reload this page.
alexamici
commented
Apr 5, 2021
You are right, I used Anyway the whole PR is work in progress. If you like the idea we can discuss the direction to go here, or in the main issue. |
Uh oh!
There was an error while loading. Please reload this page.
@snowman2 The current implementation is just to see where I'd be aiming following pydata/xarray#2844 >>>importxarrayasxr>>>xr.open_dataset("test/test_data/input/cog.tif", decode_coords="coordinates") # or decode_coords=True<xarray.Dataset>Dimensions: (band: 1, x: 500, y: 500)
Coordinates:
*band (band) int641*y (y) float642.715e+062.714e+06 ... 2.565e+062.565e+06*x (x) float641.635e+061.635e+06 ... 1.784e+061.784e+06Datavariables:
spatial_refint64 ...
band_data (band, y, x) int16 ...
>>>xr.open_dataset("test/test_data/input/cog.tif", decode_coords="all")
<xarray.Dataset>Dimensions: (band: 1, x: 500, y: 500)
Coordinates:
*band (band) int641*y (y) float642.715e+062.714e+06 ... 2.565e+062.565e+06*x (x) float641.635e+061.635e+06 ... 1.784e+061.784e+06spatial_refint64 ...
Datavariables:
band_data (band, y, x) int16 ...I didn't manage to add the The best course of action would be to implement |
alexamici
commented
Apr 6, 2021
engine="gdal"engine="rasterio"Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Alan D. Snow <alansnow21@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
snowman2
commented
Apr 7, 2021
@alexamici are you aware of the target release date for xarray 0.18? |
snowman2
commented
Apr 7, 2021
@alexamici am I good to squash and merge? (rasterio 1.2.2 was just released and looks like it is breaking things, so I am not worried about test failures related to this PR). |
Release should be "soonish", but we have no target date to my knowledge. Anyway the changes are totally backward compatible, since che |
alexamici
commented
Apr 7, 2021
You can merge now for me. |
snowman2
commented
Apr 7, 2021
Thanks @alexamici 👍 |
Use xarray plugin infrastructure to add support for:
also add automatic engine selection for files with
.tifand.geotifextensions.docs/history.rstfor all changes anddocs/rioxarray.rstfor new API