forked from whatnick/datacube-index
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
84 lines (65 loc) · 2.36 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
DEV_DOCKERFILES=-f docker-compose.yml -f docker-compose.dev.yml
build:
docker-compose ${DEV_DOCKERFILES} build
up:
docker-compose ${DEV_DOCKERFILES} up
clean:
docker-compose ${DEV_DOCKERFILES} down
test:
docker-compose ${DEV_DOCKERFILES} exec dc-index \
bash -c "\
pip install pytest;\
pytest\
"
init:
docker-compose exec dc-index \
datacube system init --no-init-users
shell:
docker-compose exec dc-index \
bash
product-s2-stac:
docker-compose exec dc-index \
datacube product add https://raw.githubusercontent.com/digitalearthafrica/config/master/products/esa_s2_l2a.yaml
index-s2-stac:
docker-compose exec dc-index \
python /code/odc_index/s3_to_dc.py --stac --update --allow-unsafe \
s3://sentinel-cogs/sentinel-s2-l2a-cogs/2020/S2A_27PZT_20200601_0_L2A/*.json s2_l2a
index-s2-stac-sqs:
docker-compose exec dc-index \
python /code/odc_index/sqs_to_dc.py --stac --limit=10 s2-v0-test s2_l2a
index-s2-stac-sqs-region-code:
docker-compose exec dc-index \
python /code/odc_index/sqs_to_dc.py --stac --limit=10 \
--region-code-list-uri="https://github.com/digitalearthafrica/deafrica-extent/raw/master/deafrica-mgrs-tiles.csv.gz"\
s2-v0-test s2_l2a
metadata-sandbox:
docker-compose exec dc-index \
datacube metadata add https://raw.githubusercontent.com/GeoscienceAustralia/dea-config/master/workspaces/sandbox-metadata.yaml
product-s2-nbar:
docker-compose exec dc-index \
datacube product add https://raw.githubusercontent.com/GeoscienceAustralia/dea-config/master/products/ga_s2_ard_nbar/ga_s2_ard_nbar_granule.yaml
index-s2-nbar-test:
docker-compose exec dc-index \
/code/index-sentinel-2.py --start-date 2020-06-01 --end-date 2020-07-01 "ga_s2a_ard_nbar_granule ga_s2b_ard_nbar_granule"
index-stac-api:
docker-compose exec dc-index \
python /code/odc_index/stac_api_to_dc.py \
--bbox='-20,30,20,40' \
--limit=1000 \
--collections='sentinel-s2-l2a-cogs' \
--datetime='2020-08-01/2020-08-31' \
s2_l2a
test-load-s2:
docker-compose exec dc-index \
python -c "\
import datacube;\
dc = datacube.Datacube(); \
ds = dc.find_datasets(product='s2_l2a', limit=1); \
dc.load(product='s2_l2a',id=ds[0].id,output_crs='EPSG:4326',resolution=(0.1,0.1))"
index-stac-api-au:
docker-compose exec \
--env STAC_API_URL=https://explorer.sandbox.dea.ga.gov.au/stac/ \
dc-index \
python /code/odc_index/stac_api_to_dc.py \
--limit=10 \
s2_l2a