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

Use load_stac to read in rasterized extractions #85

Closed
3 tasks done
VincentVerelst opened this issue Apr 9, 2024 · 6 comments
Closed
3 tasks done

Use load_stac to read in rasterized extractions #85

VincentVerelst opened this issue Apr 9, 2024 · 6 comments
Assignees

Comments

@VincentVerelst
Copy link
Collaborator

VincentVerelst commented Apr 9, 2024

After the extractions we will have 4 overarching STAC collections. (S1, S2, Agera5 and ground truth).

  • Make sure load_stac is able to load in each STAC collection. The assets are netcdf's with time series
  • Make sure the backend and Python client have the band information (needed for feature computation later)
  • Merge the 4 collections with merge_cubes

This is a subissue of #4

@VincentVerelst
Copy link
Collaborator Author

Currently, we get the following error message: Java.lang.IllegalArgumentException: GDAL Could not retrieve time values from netcdf.

Code example:

import openeo
c = openeo.connect('openeo.vito.be').authenticate_oidc()
test = c.load_stac('/data/users/Public/vincent.verelst/world_cereal/extractions_bys2tile/stac/collection.json')
test.execute_batch('test_load_stac.nc')

Job ID: j-240409358b0841e7b8e48dfb4e7df3e8
backend: openeo.vito.be

@jdries
Copy link
Collaborator

jdries commented Apr 10, 2024

@VincentVerelst make sure to try on openeo-dev. I fixed a very similar issue for you last week I believe, but not sure if we promoted the fix to prod already.

@VincentVerelst
Copy link
Collaborator Author

Confirmed, load_stac works on openeo-dev. Two important notes:

  • Not working on prod yet
  • Also need to wait for next release of the Python client to have the band information also on the client side. Currently need to use a local checkout of the python client master branch.

@VincentVerelst
Copy link
Collaborator Author

Currently getting geotrellis.raster.gdal.MalformedDataTypeException: Unable to determine NoData value. GDAL Exception Code: 4. when trying to load the ground truth data (netCDF without time dimension)

Loading the S2 data (netCDF with time dimension) works.

Both on backend openeo-dev.vito.be

@VincentVerelst
Copy link
Collaborator Author

Currently blocked by Open-EO/openeo-geotrellis-extensions#282

@VincentVerelst
Copy link
Collaborator Author

with #99 it should be able to also read in the ground truth netCDF with load_stac

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

2 participants