@@ -1157,46 +1157,7 @@ search indices or other automated data discovery tools.
11571157Rasterio
11581158--------
11591159
1160- GeoTIFFs and other gridded raster datasets can be opened using `rasterio `_, if
1161- rasterio is installed. Here is an example of how to use
1162- :py:func: `open_rasterio ` to read one of rasterio's `test files `_:
1163-
1164- .. deprecated :: 0.20.0
1165-
1166- Deprecated in favor of rioxarray.
1167- For information about transitioning, see:
1168- `rioxarray getting started docs<https://corteva.github.io/rioxarray/stable/getting_started/getting_started.html>``
1169-
1170- .. ipython ::
1171- :verbatim:
1172-
1173- In [7]: rio = xr.open_rasterio("RGB.byte.tif")
1174-
1175- In [8]: rio
1176- Out[8]:
1177- <xarray.DataArray (band: 3, y: 718, x: 791)>
1178- [1703814 values with dtype=uint8]
1179- Coordinates:
1180- * band (band) int64 1 2 3
1181- * y (y) float64 2.827e+06 2.826e+06 2.826e+06 2.826e+06 2.826e+06 ...
1182- * x (x) float64 1.021e+05 1.024e+05 1.027e+05 1.03e+05 1.033e+05 ...
1183- Attributes:
1184- res: (300.0379266750948, 300.041782729805)
1185- transform: (300.0379266750948, 0.0, 101985.0, 0.0, -300.041782729805, 28...
1186- is_tiled: 0
1187- crs: +init=epsg:32618
1188-
1189-
1190- The ``x `` and ``y `` coordinates are generated out of the file's metadata
1191- (``bounds ``, ``width ``, ``height ``), and they can be understood as cartesian
1192- coordinates defined in the file's projection provided by the ``crs `` attribute.
1193- ``crs `` is a PROJ4 string which can be parsed by e.g. `pyproj `_ or rasterio.
1194- See :ref: `/examples/visualization_gallery.ipynb#Parsing-rasterio-geocoordinates `
1195- for an example of how to convert these to longitudes and latitudes.
1196-
1197-
1198- Additionally, you can use `rioxarray `_ for reading in GeoTiff, netCDF or other
1199- GDAL readable raster data using `rasterio `_ as well as for exporting to a geoTIFF.
1160+ GDAL readable raster data using `rasterio `_ such as GeoTIFFs can be opened using the `rioxarray `_ extension.
12001161`rioxarray `_ can also handle geospatial related tasks such as re-projecting and clipping.
12011162
12021163.. ipython ::
0 commit comments