Skip to content

Commit 87566aa

Browse files
Merge pull request #21 from ESGF/lukasz/testdata
Add scripts to download, process and send (POST, PUT, PATCH) Items to…
2 parents 9c853b8 + 0421bd5 commit 87566aa

15 files changed

+4587
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ build
99
.env*
1010
.coverage
1111
htmlcov/
12-
__pycache__/
12+
__pycache__/
13+
esgf1-payloads/
14+
esgfng-payloads/

test/Eest-CMIP6-paths-0001-0500.txt

Lines changed: 500 additions & 0 deletions
Large diffs are not rendered by default.

test/Eest-CMIP6-paths-0501-1000.txt

Lines changed: 500 additions & 0 deletions
Large diffs are not rendered by default.

test/Eest-CMIP6-paths-1001-1500.txt

Lines changed: 500 additions & 0 deletions
Large diffs are not rendered by default.

test/Eest-CMIP6-paths-1501-2000.txt

Lines changed: 500 additions & 0 deletions
Large diffs are not rendered by default.

test/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Data challenges and tests
2+
3+
```
4+
generate_payloads.py --help
5+
6+
usage: generate_payloads.py [-h] --datasets DATASETS [--documents-dir DOCUMENTS_DIR] [--payloads-dir PAYLOADS_DIR]
7+
8+
Generate payloads for testing.
9+
10+
options:
11+
-h, --help Show this help message and exit.
12+
--datasets DATASETS Path to a file containing dataset paths (one per line).
13+
--documents-dir DOCUMENTS_DIR
14+
Directory where ESGF1 metadata files will be stored.
15+
--payloads-dir PAYLOADS_DIR
16+
Directory where generated payload files will be stored.
17+
```
18+
19+
for example
20+
21+
```
22+
python generate_payloads.py --datasets West-CMIP6-paths-0001-0500.txt
23+
```
24+
The ESGF1 metadata will be downloaded to the `esgf1-payloads/` default directory, converted to STAC Items and stored as STAC Item metadata payloads in `esgfng-payloads/`.

test/West-CMIP6-paths-0001-0500.txt

Lines changed: 500 additions & 0 deletions
Large diffs are not rendered by default.

test/West-CMIP6-paths-0501-1000.txt

Lines changed: 500 additions & 0 deletions
Large diffs are not rendered by default.

test/West-CMIP6-paths-1001-1500.txt

Lines changed: 500 additions & 0 deletions
Large diffs are not rendered by default.

test/West-CMIP6-paths-1501-2000.txt

Lines changed: 500 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)