corteva / rioxarray

geospatial xarray extension powered by rasterio
https://corteva.github.io/rioxarray
Other
517 stars 81 forks source link

Rio array merge missing #759

Closed sehHeiden closed 6 months ago

sehHeiden commented 6 months ago

I want to merge arrays but the module is gone in 0.15.1

import rioxarray

out = Rio array.merge.merge_arrays([rioxarray.open_rasterio(x) for x in inpath.iterdir()]) 

Problem description

AttributeError: module 'rioxarray' has no attribute 'merge'.

Expected Output

Environment Information

rioxarray 0.15.1 pyhton 3.11.6 rasterio.1.3.9 xarray: 2024.1.1 gdal: 3.6.4 geos: 3.11.2 proj: 9.0.1

others scipy 1.12.0 Pyproj 3.6.1

Installation method

Written on mobile phone, so may contain some typos.

RichardScottOZ commented 6 months ago

Missing the accessor?

snowman2 commented 6 months ago

Try this:

from rioxarray.merge import merge_arrays
sehHeiden commented 6 months ago

The later works.