small changes
This commit is contained in:
parent
01729a323a
commit
35b54c9f7e
3
scripts/restart.sh
Executable file
3
scripts/restart.sh
Executable file
@ -0,0 +1,3 @@
|
||||
# kubectl rollout restart deployment/redis
|
||||
kubectl rollout restart deployment/web-query-builder
|
||||
kubectl rollout restart deployment/stac-server
|
@ -2,4 +2,20 @@
|
||||
```
|
||||
pip install maturin
|
||||
maturing develop
|
||||
```
|
||||
```
|
||||
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
@ -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)
|
||||
|
@ -30,8 +30,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="details">
|
||||
<h2>Current Request</h2>
|
||||
Hover over a key or value for more info.
|
||||
<h2>Current Selection</h2>
|
||||
This is a <a href="https://github.com/ecmwf/datacube-spec/blob/main/spec/selection.md">MARS Selection</a> object in JSON format. Hover over a key or value for more info.
|
||||
<!-- Container for the request part, preloaded to prevent layout shift. -->
|
||||
<pre><code id="request-breakdown" class="language-json">
|
||||
{
|
||||
@ -41,7 +41,7 @@
|
||||
<!-- Container fo the raw STAC response -->
|
||||
<details open>
|
||||
<summary><h2>Raw STAC Response</h2></summary>
|
||||
<p>See the <a href="https://github.com/ecmwf-projects/catalogs/blob/main/structured_stac.md">extension proposal</a> for more details on the format.</p>
|
||||
<p>See the <a href="https://github.com/ecmwf-projects/catalogs/blob/main/structured_stac.md">STAC Extension Proposal</a> for more details on the format.</p>
|
||||
<pre class="json-pre"><code id="raw-stac" class="language-json"></code></pre>
|
||||
</details>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user