Skip to content

Add string representation for rio accessor#911

Open
remi-braun wants to merge 2 commits intocorteva:masterfrom
remi-braun:repr
Open

Add string representation for rio accessor#911
remi-braun wants to merge 2 commits intocorteva:masterfrom
remi-braun:repr

Conversation

@remi-braun
Copy link
Contributor

Adding a quick string representation for the rio accessor.

Example for /app/test/test_data/input/veris.nc

rioxarray accessor (.rio) | RasterDataset
Variables:
        Name: 'Slope'
        'Slope' attributes:
                count: 1
                crs: 4326
                rasterio_dtype: float64
                nodata: -9999.0
                transform: | 0.00, 0.00,-94.30|
| 0.00,-0.00, 42.35|
| 0.00, 0.00, 1.00|
                height: 50
                width: 35
                blockxsize: 35
                blockysize: 1
                bounds: (-94.30306000000002, 42.350229999999996, -94.30271000000002, 42.350730000000006)
        Name: 'Red'
        'Red' attributes:
                count: 1
                crs: 4326
                rasterio_dtype: float64
                nodata: -9999.0
                transform: | 0.00, 0.00,-94.30|
| 0.00,-0.00, 42.35|
| 0.00, 0.00, 1.00|
                height: 50
                width: 35
                blockxsize: 35
                blockysize: 1
                bounds: (-94.30306000000002, 42.350229999999996, -94.30271000000002, 42.350730000000006)

@remi-braun
Copy link
Contributor Author

This helps to quickly grasp the dataset information, a bit like printing ds.meta in rasterio

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.

1 participant