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

extract downloaded STAC assets #391

Open
zbenta opened this issue Jan 31, 2022 · 2 comments
Open

extract downloaded STAC assets #391

zbenta opened this issue Jan 31, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@zbenta
Copy link

zbenta commented Jan 31, 2022

Describe the bug
While using eodag containers, stac-server does not extract the products if we use the download link generated by the server.
If we use a simple python script inside the stac-server container, the downloaded products are extracted automatically.

Code To Reproduce
We have explicitly defined eodag to extract extract: true the products as per the documentation

eodag.yaml

creodias:
  priority: 100 # Lower value means lower priority (Default: 0)
  search:   # Search parameters configuration
  download:
      extract: true
      outputs_prefix: /data/out/
      dl_url_params: provider=creodias
  auth:
      credentials:
          username: CREODIAS_USERNAME
          password: CREODIAS_PWD

The script we used to download the products is based o the eodag documentation

from eodag import EODataAccessGateway

dag = EODataAccessGateway()
products, total_count = dag.search(
   productType="S2_MSI_L1C",
   start="2018-01-01",
   end="2018-01-02",
   geom=(1, 43, 2, 44)
)
product_paths = dag.download_all(products)

Environment:

  • Kubernetes: 1.16.15
  • Python container: python:3.9-slim
  • EODAG repo version: v2.3.4

Additional context
Even if we use wget or curl to download the data from our stac-sever using the generated url we only get the zip files and there is no automatic extraction as per the eodag.yaml file.

@zbenta zbenta added the bug Something isn't working label Jan 31, 2022
@sbrunato
Copy link
Collaborator

Hello @zbenta , and thanks for reporting this issue.

Using eodag as STAC proxy for creodias data will make creodias zipped products available as single STAC assets.

This way using wget or curl to download will give you zipped data, that you'll have to extract separately.

One thing that could be done, but which is not available yet for eodag, would be to:

  • give the ability to extract STAC assets if they are compressed, once they are downloaded (not available for STAC providers for the moment)

Would this match your needs ?

@zbenta
Copy link
Author

zbenta commented Feb 4, 2022

Hi @sbrunato, thanks for your feedback.
I think that an automatic extraction of the assets, would solve our issue, this way we can use the data in our pipeline without having to do any manual interaction.

@sbrunato sbrunato added enhancement New feature or request and removed bug Something isn't working labels Feb 24, 2022
@sbrunato sbrunato changed the title Stac Server does not extract products automatically. extract downloaded STAC assets Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants