Skip to content

Commit

Permalink
ENH: Add rio.count, rio.slice_xy(), rio.bounds(), rio.resolution(), r…
Browse files Browse the repository at this point in the history
…io.transform_bounds() to Dataset level (#146)
  • Loading branch information
snowman2 committed Jun 25, 2020
1 parent fe98439 commit a822e9a
Show file tree
Hide file tree
Showing 5 changed files with 351 additions and 318 deletions.
1 change: 1 addition & 0 deletions docs/examples/manage_information_loss.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"- [rio.update_attrs()](../rioxarray.rst#rioxarray.rioxarray.XRasterBase.update_attrs)\n",
"- [rio.crs](../rioxarray.rst#rioxarray.rioxarray.XRasterBase.crs)\n",
"- [rio.nodata](../rioxarray.rst#rioxarray.rioxarray.RasterArray.nodata)\n",
"- [rio.transform()](../rioxarray.rst#rioxarray.rioxarray.XRasterBase.transform)\n",
"\n",
"Note that `write_transform` is only needed if you are not saving the x,y coordinates. It is for\n",
"GDAL to be able to read in the transform without needing the original coordinates and is useful\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/transform_bounds.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"API Reference: [rio.transform_bounds()](../rioxarray.rst#rioxarray.rioxarray.RasterArray.transform_bounds)"
"API Reference: [rio.transform_bounds()](../rioxarray.rst#rioxarray.rioxarray.XRasterBase.transform_bounds)"
]
},
{
Expand Down Expand Up @@ -122,7 +122,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.7"
"version": "3.6.10"
}
},
"nbformat": 4,
Expand Down
1 change: 1 addition & 0 deletions docs/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Latest
- ENH: Use rasterio windows for `rio.clip_box` (issue #142)
- BUG: Add support for negative indexes in rio.isel_window (pull #145)
- BUG: Write transform based on window in rio.isel_window (pull #145)
- ENH: Add `rio.count`, `rio.slice_xy()`, `rio.bounds()`, `rio.resolution()`, `rio.transform_bounds()` to Dataset level

0.0.29
-------
Expand Down
Loading

0 comments on commit a822e9a

Please sign in to comment.