Add function to convert otbObject to Xarray
Hi,
I'm wondering if we can add support for converting otbObject to Xarray. Based on the references I can add an example how to do it using 'rioxarray'. I'm also wondering does otb also have something like 'itk.array_view_from_image' cause by default I believe it will be a copy of array rather than a view.?
Reference:
https://github.com/CNES/cars/blob/c64d6e4b8f85fda3b1b3b38f40963bc823be0f4e/cars/externals/otb_pipelines.py#L254 https://github.com/InsightSoftwareConsortium/ITK/blob/57624fda9a9a7aa4771481655e5fdd82e780f362/Wrapping/Generators/Python/itk/support/xarray.py#L37
Edited by Pratyush Das