Skip to content

Commit a991fd6

Browse files
committed
Update docs etc
1 parent 9d6c3eb commit a991fd6

28 files changed

Lines changed: 69969 additions & 21027 deletions

Database/input4MIPs_db_file_entries.json

Lines changed: 10296 additions & 132 deletions
Large diffs are not rendered by default.

check-types.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
"""
2+
Check API types
3+
"""
4+
5+
import requests
6+
7+
8+
def main():
9+
url = "https://esgf-node.ornl.gov/esgf-1-5-bridge"
10+
11+
for source_id in ["PIK-CMIP-1-0-0"]:
12+
params = dict(
13+
replica=False,
14+
activity_id="input4MIPs",
15+
type="Dataset",
16+
facets="source_id",
17+
source_id=source_id,
18+
)
19+
20+
r = requests.get(url, params=params)
21+
r_json = r.json()
22+
23+
timestamp_vs = [v["_timestamp"] for v in r_json["response"]["docs"]]
24+
25+
print(f"{source_id=}")
26+
print(f"{timestamp_vs=}")
27+
print()
28+
29+
30+
if __name__ == "__main__":
31+
main()

docs/database-views/input4MIPs_datasets_CMIP7.html

Lines changed: 20413 additions & 8223 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)