Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge cubes with different resolutions by UDF #437

Open
jdries opened this issue May 3, 2023 · 0 comments
Open

merge cubes with different resolutions by UDF #437

jdries opened this issue May 3, 2023 · 0 comments

Comments

@jdries
Copy link
Contributor

jdries commented May 3, 2023

A user is requesting to load Sentinel-2 data in the original 10m and 20m resolution (resolution depends on band), and then to apply a UDF, receiving those bands in the original resolution.

I haven't entirely figured it out yet.
One option is a complex contraction of merge_cubes and apply_neighborhood where cubes do not need full alignment and the UDF receives an xarray Dataset with the variables having different resolutions.

Another option, which I will probably implement as a first solution, is simply trying to load the 10m and 20m bands in a single datacube, and then applying a UDF with a new signature that takes an xarray Dataset.

I think I will be able to implement the second option, only problem is that it doesn't comply with the datacube model, as the virtual datacube will be fully 10m resolution, while the udf will still receive bands with mixed resolutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant