diff --git a/scripts/restart.sh b/scripts/restart.sh new file mode 100755 index 0000000..b75dcc4 --- /dev/null +++ b/scripts/restart.sh @@ -0,0 +1,3 @@ +# kubectl rollout restart deployment/redis +kubectl rollout restart deployment/web-query-builder +kubectl rollout restart deployment/stac-server \ No newline at end of file diff --git a/tree_compresser/README.md b/tree_compresser/README.md index 2a389c5..88a9cb9 100644 --- a/tree_compresser/README.md +++ b/tree_compresser/README.md @@ -2,4 +2,20 @@ ``` pip install maturin maturing develop -``` \ No newline at end of file +``` + + + +To values.yaml add config for the periodic update job: + How often to run the update job + What request stub to use: + dataset: climate-dt + date: -2/-1 + etc... + What order to put the keys in in the tree + key_order: + - activity + - class + - dataset + - date + diff --git a/tree_compresser/tests/open_climate_dt.py b/tree_compresser/tests/open_climate_dt.py index 4af8fbb..b5e9c18 100644 --- a/tree_compresser/tests/open_climate_dt.py +++ b/tree_compresser/tests/open_climate_dt.py @@ -3,13 +3,15 @@ from pathlib import Path from tree_traverser import CompressedTree -data_path = Path("data/compressed_tree_climate_dt_ecmwf_style.json") +data_path = Path("/home/eouser/qubed/config/climate-dt/compressed_tree.json") # Print size of file print(f"climate dt compressed tree: {data_path.stat().st_size // 1e6:.1f} MB") print("Opening json file") compressed_tree = CompressedTree.load(data_path) -print("Outputting compressed tree ecmwf style") -with open("data/compressed_tree_climate_dt_ecmwf_style.json", "w") as f: - json.dump(compressed_tree.reconstruct_compressed_ecmwf_style(), f) +print(compressed_tree.reconstruct_compressed_ecmwf_style()) + +# print("Outputting compressed tree ecmwf style") +# with open("data/compressed_tree_climate_dt_ecmwf_style.json", "w") as f: +# json.dump(compressed_tree.reconstruct_compressed_ecmwf_style(), f) diff --git a/web_query_builder/templates/index.html b/web_query_builder/templates/index.html index 6f2c7e1..624c776 100644 --- a/web_query_builder/templates/index.html +++ b/web_query_builder/templates/index.html @@ -30,8 +30,8 @@
-

Current Request

- Hover over a key or value for more info. +

Current Selection

+ This is a MARS Selection object in JSON format. Hover over a key or value for more info.

 {
@@ -41,7 +41,7 @@
             
             

Raw STAC Response

-

See the extension proposal for more details on the format.

+

See the STAC Extension Proposal for more details on the format.