rioxarray
rioxarray copied to clipboard
geospatial xarray extension powered by rasterio
#### Code Sample **Example 1:** ```python import numpy import xarray import rioxarray numpy.random.seed(0) temperature = 15 + 8 * numpy.random.randn(20,20) lon = numpy.linspace(0,359.9,20) lat = numpy.linspace(-88,-50,20) xda = xarray.DataArray(data=temperature, dims=["x",...
Please consider adding support for in-memory rasterizing, rasterio supports this with [MemoryFile](https://rasterio.readthedocs.io/en/stable/api/rasterio.io.html#rasterio.io.MemoryFile), which could be written to a BytesIO object for easier cross-compatibility.
```python import rioxarray as rxr import dask # Open raster - problem is independent of raster source raster = rxr.open_rasterio("raster_example.tif", chunks=True) # Raster is split into chunks with dask as...
### Discussed in https://github.com/corteva/rioxarray/discussions/613 Originally posted by **pradeeps31** December 8, 2022 Hi Guys, I am trying to convert a netCDF file to GeoTIFF file using xarrray and rioxarray. But when...
Xarray has a fancy [new nightly upstream testing workflow](https://github.com/pydata/xarray/blob/main/.github/workflows/upstream-dev-ci.yaml). It runs nightly and opens nice issues with test logs ([example](https://github.com/pydata/xarray/issues/7420)). It'd be nice to copy that over here so things...
Basically the title is self-explaining, I ran into this issue recently. This is the failing line: https://github.com/corteva/rioxarray/blob/master/rioxarray/raster_dataset.py#L520 The problem is caused by the line > https://github.com/corteva/rioxarray/blob/master/rioxarray/raster_dataset.py#L510 It should instead write:...
#### Code Sample ```python import rioxarray as rx input = rx.open_rasterio("./test_file.envi") input.rio.to_raster("./output.envi", driver="ENVI") ``` #### Problem description In the above code, any tag under the `ENVI` namespace is stripped when...
### What is your issue? Hey all, I suspect I am just doing something incorrectly but haven't been able to solve this problem, so hoping someone can point me in...
#### Code Sample, a copy-pastable example if possible A "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you: http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports ```python import rioxarray as rxr...
#### Code Sample Here, a cropped [S2B_MSIL2A.SAFE.zip](https://github.com/corteva/rioxarray/files/14750491/S2B_MSIL2A.SAFE.zip), containing only two 60 m bands. ```python import rioxarray path_to_safe_zip = `S2B_MSIL2A.SAFE.zip` safe_name = path_to_safe_zip.replace('.zip', '') sds_path = 'SENTINEL2_L2A:/vsizip//{path_to_safe_zip}/{safe_name}/MTD_MSIL2A.xml:60m:EPSG_32611' rds = rioxarray.open_rasterio(path, chunks=True,...