xarray-spatial icon indicating copy to clipboard operation
xarray-spatial copied to clipboard

geotiff python package

Open KipCrossing opened this issue 4 years ago • 0 comments

Hey all,

Great work on this package!

I thought I drop a post here to put the geotiff package on your radar. It's also built with a noGDAL philosophy in mind (you should totally start using this term btw).

The package is in early dev but covers my (personal) needs and makes reading tiff files pretty painless. For example:

import xarray as xr
from xrspatial import hillshade
from geotiff import GeoTiff

tiff_file = "dem.tif"
geoTiff = GeoTiff(tiff_file)
dem_array = geoTiff.read()

my_dataarray = xr.DataArray(dem_array)
hillshaded_dataarray = hillshade(my_dataarray)

It's also pretty handy that zarr arrays are compatible with dask.

(feel free to close this issue)

KipCrossing avatar Apr 05 '21 03:04 KipCrossing