Alan D. Snow
Alan D. Snow
Side note, to plot RGB bands, here is an example [ref](https://corteva.github.io/rioxarray/stable/examples/COG.html) ```python rds.astype("int").plot.imshow(rgb="band") ```
Sounds like that could be useful. Here are some references for metadata usage in rioxarray: - https://corteva.github.io/rioxarray/stable/getting_started/manage_information_loss.html - https://corteva.github.io/rioxarray/stable/getting_started/crs_management.html - https://corteva.github.io/rioxarray/stable/getting_started/nodata_management.html Did you have thoughts on what the behavior would...
Each of the functions already calls the attributes needed and raises appropriate errors for the subsets of information that are missing. To keep things simple, what I am thinking the...
Short answer: I don't recommend overwriting the same file you opened. Instead, write to a new file. Potentially useful: https://rasterio.readthedocs.io/en/latest/api/rasterio.shutil.html Related: #477; https://github.com/pydata/xarray/issues/2887 rioxarray lazily loads the data from the...
This is the code that should make the file closable: https://github.com/corteva/rioxarray/blob/2888deb1e2abeccf1b7b531378a58762d40685aa/rioxarray/_io.py#L948-L950 See: [DataArray.set_close](https://xarray.pydata.org/en/stable/generated/xarray.DataArray.html) & [Dataset.set_close](https://xarray.pydata.org/en/stable/generated/xarray.Dataset.set_close.html). > If you later print tif it will read out your DataArray again. When calling...
The reading logic is handled by GDAL. See: https://gdal.org/drivers/raster/aaigrid.html. If you would like to see this format supported, I recommend opening up an issue here: https://github.com/OSGeo/gdal
Also, you could look into using StringIO/BytesIO to pass in a string/binary as a file: https://docs.python.org/3/library/io.html
See: #562
Also related: https://github.com/rasterio/rasterio/issues/2550
> I am would be happy to make a pull request for this Sure, I think that would be helpful. I am wondering if we should add a FAQ/Gotchas page...