Commit ·
4abc28e
1
Parent(s): 4547935
feat: integrated minimum and maximum temperature to indicators list
Browse files
climateqa/engine/talk_to_data/ipcc/config.py
CHANGED
|
@@ -6,16 +6,22 @@ from climateqa.engine.talk_to_data.config import IPCC_DATASET_URL
|
|
| 6 |
IPCC_TABLES = [
|
| 7 |
"mean_temperature",
|
| 8 |
"total_precipitation",
|
|
|
|
|
|
|
| 9 |
]
|
| 10 |
|
| 11 |
IPCC_INDICATOR_COLUMNS_PER_TABLE = {
|
| 12 |
"mean_temperature": "mean_temperature",
|
| 13 |
-
"total_precipitation": "total_precipitation"
|
|
|
|
|
|
|
| 14 |
}
|
| 15 |
|
| 16 |
IPCC_INDICATOR_TO_UNIT = {
|
| 17 |
"mean_temperature": "°C",
|
| 18 |
-
"total_precipitation": "mm/day"
|
|
|
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
IPCC_SCENARIO = [
|
|
@@ -64,7 +70,9 @@ HUGE_MACRO_COUNTRIES = ['CL',
|
|
| 64 |
|
| 65 |
IPCC_INDICATOR_TO_COLORSCALE = {
|
| 66 |
"mean_temperature": TEMPERATURE_COLORSCALE,
|
| 67 |
-
"total_precipitation": PRECIPITATION_COLORSCALE
|
|
|
|
|
|
|
| 68 |
}
|
| 69 |
|
| 70 |
IPCC_UI_TEXT = """
|
|
@@ -78,9 +86,12 @@ By default, we take the **mediane of each climate model**.
|
|
| 78 |
Current available charts :
|
| 79 |
- Yearly evolution of an indicator at a specific location (historical + SSP Projections)
|
| 80 |
- Yearly spatial distribution of an indicator in a specific country
|
|
|
|
| 81 |
|
| 82 |
Current available indicators :
|
| 83 |
- Mean temperature
|
|
|
|
|
|
|
| 84 |
- Total precipitation
|
| 85 |
|
| 86 |
For example, you can ask:
|
|
|
|
| 6 |
IPCC_TABLES = [
|
| 7 |
"mean_temperature",
|
| 8 |
"total_precipitation",
|
| 9 |
+
"minimum_temperature",
|
| 10 |
+
"maximum_temperature"
|
| 11 |
]
|
| 12 |
|
| 13 |
IPCC_INDICATOR_COLUMNS_PER_TABLE = {
|
| 14 |
"mean_temperature": "mean_temperature",
|
| 15 |
+
"total_precipitation": "total_precipitation",
|
| 16 |
+
"minimum_temperature": "minimum_temperature",
|
| 17 |
+
"maximum_temperature": "maximum_temperature"
|
| 18 |
}
|
| 19 |
|
| 20 |
IPCC_INDICATOR_TO_UNIT = {
|
| 21 |
"mean_temperature": "°C",
|
| 22 |
+
"total_precipitation": "mm/day",
|
| 23 |
+
"minimum_temperature": "°C",
|
| 24 |
+
"maximum_temperature": "°C"
|
| 25 |
}
|
| 26 |
|
| 27 |
IPCC_SCENARIO = [
|
|
|
|
| 70 |
|
| 71 |
IPCC_INDICATOR_TO_COLORSCALE = {
|
| 72 |
"mean_temperature": TEMPERATURE_COLORSCALE,
|
| 73 |
+
"total_precipitation": PRECIPITATION_COLORSCALE,
|
| 74 |
+
"minimum_temperature": TEMPERATURE_COLORSCALE,
|
| 75 |
+
"maximum_temperature": TEMPERATURE_COLORSCALE,
|
| 76 |
}
|
| 77 |
|
| 78 |
IPCC_UI_TEXT = """
|
|
|
|
| 86 |
Current available charts :
|
| 87 |
- Yearly evolution of an indicator at a specific location (historical + SSP Projections)
|
| 88 |
- Yearly spatial distribution of an indicator in a specific country
|
| 89 |
+
- Yearly evolution of an indicator in a specific month at a specific location (historical + SSP Projections)
|
| 90 |
|
| 91 |
Current available indicators :
|
| 92 |
- Mean temperature
|
| 93 |
+
- Minimum temperature
|
| 94 |
+
- Maximum temperature
|
| 95 |
- Total precipitation
|
| 96 |
|
| 97 |
For example, you can ask:
|