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/issues/4142#issuecomment-642669071,https://api.github.com/repos/pydata/xarray/issues/4142,642669071,MDEyOklzc3VlQ29tbWVudDY0MjY2OTA3MQ==,8699967,2020-06-11T13:54:33Z,2020-06-11T14:05:49Z,CONTRIBUTOR,"In `rioxarray` we updated `open_rasterio` so it opens a `tif` file like a DataArray and netcdf-like files as a dataset. It also loads in the metadata/tags as well:
### NetCDF file as Dataset
```python
import rioxarray
xds = rioxarray.open_rasterio(""PLANET_SCOPE_3D.nc"")
```
```
Dimensions: (time: 2, x: 10, y: 10)
Coordinates:
* y (y) float64 8.085e+06 8.085e+06 ... 8.085e+06 8.085e+06
* x (x) float64 4.663e+05 4.663e+05 ... 4.663e+05 4.663e+05
* time (time) object 2016-12-19 10:27:29 2016-12-29 12:52:41.659696
spatial_ref int64 0
Data variables:
blue (time, y, x) float64 6.611 5.581 0.3996 ... 3.491 5.056 3.368
green (time, y, x) float64 7.921 66.15 30.1 ... 21.76 27.29 18.41
Attributes:
coordinates: spatial_ref
```
### GeoTiff as DataArray
```python
rds = rioxarray.open_rasterio(""test_albedo.tif"")
```
```
[697320 values with dtype=int8]
Coordinates:
* band (band) int64 1
* y (y) float64 4.225e+06 4.225e+06 ... 4.216e+06 4.216e+06
* x (x) float64 6.168e+05 6.168e+05 ... 6.242e+05 6.242e+05
spatial_ref int64 0
Attributes:
transform: (10.0, 0.0, 616800.0, 0.0, -10.0, 4225260.0)
_FillValue: -1.0
scale_factor: 1.0
add_offset: 0.0
long_name: Albedo dry - the estimated ratio of the incident short-wav...
grid_mapping: spatial_ref
```
So, it could be modified to use as an `engine` in its current state.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,636493109