armanddemasson commited on
Commit
c3398f4
·
1 Parent(s): 3f85f96

feat: created config constants for talk to ipcc

Browse files
climateqa/engine/talk_to_data/ipcc/config.py ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ IPCC_DATASET_URL = "hf://datasets/ekimetrics/ipcc-atlas"
2
+ IPCC_TABLES = [
3
+ "mean_temperature",
4
+ "total_precipitation",
5
+ ]
6
+
7
+ IPCC_INDICATOR_COLUMNS_PER_TABLE = {
8
+ "mean_temperature": "mean_temperature",
9
+ "total_precipitation": "total_precipitation"
10
+ }
11
+
12
+ IPCC_INDICATOR_TO_UNIT = {
13
+ "mean_temperature": "°C",
14
+ "total_precipitation": "mm/day"
15
+ }
16
+
17
+ IPCC_SCENARIO = [
18
+ "historical",
19
+ "ssp126",
20
+ "ssp245",
21
+ "ssp370",
22
+ "ssp585",
23
+ ]
24
+
25
+ IPCC_MODELS = []
26
+
27
+ IPCC_PLOT_PARAMETERS = [
28
+ 'year',
29
+ 'location'
30
+ ]
31
+
32
+ MACRO_COUNTRIES = ['JP',
33
+ 'IN',
34
+ 'MH',
35
+ 'PT',
36
+ 'ID',
37
+ 'SJ',
38
+ 'MX',
39
+ 'CN',
40
+ 'GL',
41
+ 'PN',
42
+ 'AR',
43
+ 'AQ',
44
+ 'PF',
45
+ 'BR',
46
+ 'SH',
47
+ 'GS',
48
+ 'ZA',
49
+ 'NZ',
50
+ 'TF',
51
+ 'CL',
52
+ 'CA',
53
+ 'AU',
54
+ 'US',
55
+ 'RU'
56
+ ]
57
+
58
+ IPCC_UI_TEXT = """
59
+ Hi, I'm **Talk to IPCC**, designed to answer your questions using [**IPCC - ATLAS**](https://interactive-atlas.ipcc.ch/regional-information#eyJ0eXBlIjoiQVRMQVMiLCJjb21tb25zIjp7ImxhdCI6OTc3MiwibG5nIjo0MDA2OTIsInpvb20iOjQsInByb2oiOiJFUFNHOjU0MDMwIiwibW9kZSI6ImNvbXBsZXRlX2F0bGFzIn0sInByaW1hcnkiOnsic2NlbmFyaW8iOiJzc3A1ODUiLCJwZXJpb2QiOiIyIiwic2Vhc29uIjoieWVhciIsImRhdGFzZXQiOiJDTUlQNiIsInZhcmlhYmxlIjoidGFzIiwidmFsdWVUeXBlIjoiQU5PTUFMWSIsImhhdGNoaW5nIjoiU0lNUExFIiwicmVnaW9uU2V0IjoiYXI2IiwiYmFzZWxpbmUiOiJwcmVJbmR1c3RyaWFsIiwicmVnaW9uc1NlbGVjdGVkIjpbXX0sInBsb3QiOnsiYWN0aXZlVGFiIjoicGx1bWUiLCJtYXNrIjoibm9uZSIsInNjYXR0ZXJZTWFnIjpudWxsLCJzY2F0dGVyWVZhciI6bnVsbCwic2hvd2luZyI6ZmFsc2V9fQ==) data.
60
+ I'll answer by displaying a list of SQL queries, graphs and data most relevant to your question.
61
+
62
+ You can ask me anything about these climate indicators: **temperature** or **precipitation**.
63
+ You can specify **location** and/or **year**.
64
+ By default, we take the **mediane of each climate model**.
65
+
66
+ For example, you can ask:
67
+ - What will the temperature be like in Paris?
68
+ - What will be the total rainfall in the USA in 2030?
69
+ - How will the average temperature evolve in China ?
70
+
71
+ **Example of indicators in the data**:
72
+ - Mean temperature
73
+ - Total precipitation
74
+
75
+ ⚠️ **Limitations**:
76
+ - You can't ask anything that isn't related to *IPCC - ATLAS** data.
77
+ - You can not ask about **several locations at the same time**.
78
+ - If you specify a year **before 1850 or over 2100**, there will be **no data**.
79
+ - You **cannot compare two models**.
80
+
81
+ 🛈 **Information**
82
+ Please note that we **log your questions for meta-analysis purposes**, so avoid sharing any sensitive or personal information.
83
+ """