An open API service indexing awesome lists of open source software.

https://github.com/robintw/xarrayandrasterio

Experimental code for loading/saving XArray DataArrays to Geographic Rasters using rasterio
https://github.com/robintw/xarrayandrasterio

gdal python raster science xarray

Last synced: 6 months ago
JSON representation

Experimental code for loading/saving XArray DataArrays to Geographic Rasters using rasterio

Awesome Lists containing this project

README

          

# XArrayAndRasterio
Experimental code for loading/saving XArray DataArrays to Geographic Rasters using rasterio

Requirements:
- `xarray`
- `numpy`
- `rasterio`
- `pandas`

Functions provided:
- `xarray_to_rasterio`: Allows you to export an xarray DataArray to a rasterio-compatible file (GeoTIFF mainly)
- `rasterio_to_xarray`: Allows you to read any rasterio-compatible file into an xarray DataArray
- `xarray_to_rasterio_by_band`: Same as `xarray_to_rasterio` but exports one file per band

Author: Robin Wilson (robin@rtwilson.com). Experimental code!