openeo-python-client icon indicating copy to clipboard operation
openeo-python-client copied to clipboard

metadata is None after `aggregate_spatial`

Open VincentVerelst opened this issue 2 years ago • 4 comments

After applying aggregate_spatial to a Rastercube, the resulting Vectorcube does not contain any metadata anymore.

VincentVerelst avatar Dec 14 '23 10:12 VincentVerelst

This is not as straightforward as hoped, as some vector cubes details are not settled yet. But maybe there are some quick wins already possible without having to over-engineer a general solution, so:

what do you want to use the metadata for? Any particular fields, e.g. you just want the band names?

soxofaan avatar Jan 09 '24 15:01 soxofaan

Yes, having the band names would be the most important.

VincentVerelst avatar Jan 11 '24 14:01 VincentVerelst

related to https://github.com/Open-EO/openeo-python-client/issues/464 https://github.com/Open-EO/openeo-python-client/issues/425 https://github.com/Open-EO/openeo-python-client/issues/527

soxofaan avatar Jan 15 '24 13:01 soxofaan

I would say aggregate_spatial preserves band names when going from raster to vector, so can we just copy that part of the metadata? Maybe @VincentVerelst can prepare a PR for that?

jdries avatar Jan 16 '24 07:01 jdries