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

Adjust time range in query of the Sentinel_2.ipynb file. #39

Open
x-malet opened this issue Jul 21, 2021 · 1 comment
Open

Adjust time range in query of the Sentinel_2.ipynb file. #39

x-malet opened this issue Jul 21, 2021 · 1 comment

Comments

@x-malet
Copy link

x-malet commented Jul 21, 2021

The query variable is

query = {
    'time': ('2020-08', '2020-10'),
    'x': (lon - buffer, lon + buffer),
    'y': (lat + buffer, lat - buffer),
    'output_crs': 'epsg:6933',
    'resolution':(-20,20),
}

but this gave me an empty datacube. I updated the query to

query = {
    'time': ('2020-01', '2020-03'),
    'x': (lon - buffer, lon + buffer),
    'y': (lat + buffer, lat - buffer),
    'output_crs': 'epsg:6933',
    'resolution':(-20,20),
}

and it worked.

@stratosgear
Copy link
Contributor

Or you might populate your db with:

docker-compose exec jupyter bash -c "stac-to-dc --bbox='25,20,35,30' --collections='sentinel-s2-l2a-cogs' --datetime='2020-08-01/2020-12-31'"

But kidding aside, you are right. The db population and the example notebooks need syncing!

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