Skip to content

Commit 774d5e8

Browse files
committed
One tutorial for all models; fix aromepi indicators
1 parent c1be1f6 commit 774d5e8

File tree

4 files changed

+12
-211
lines changed

4 files changed

+12
-211
lines changed

src/meteole/_arome_instantane.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
"BRIGHTNESS_TEMPERATURE__GROUND_OR_WATER_SURFACE",
2020
"CONVECTIVE_AVAILABLE_POTENTIAL_ENERGY__GROUND_OR_WATER_SURFACE",
2121
"DIAG_GRELE__GROUND_OR_WATER_SURFACE",
22-
"TOTAL_WATER_PRECIPITATION__GROUND_OR_WATER_SURFACE",
23-
"WIND_SPEED_GUST_15MIN__SPECIFIC_HEIGHT_LEVEL_ABOVE_GROUND",
24-
"WIND_SPEED_MAXIMUM_GUST__SPECIFIC_HEIGHT_LEVEL_ABOVE_GROUND",
2522
"WIND_SPEED_GUST__SPECIFIC_HEIGHT_LEVEL_ABOVE_GROUND",
2623
"RELATIVE_HUMIDITY__SPECIFIC_HEIGHT_LEVEL_ABOVE_GROUND",
2724
"MOCON__GROUND_OR_WATER_SURFACE",

tutorial/Fetch_PIAF_forecasts.ipynb

Lines changed: 0 additions & 185 deletions
This file was deleted.

tutorial/Fetch_forecast_for_multiple_indicators.ipynb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"source": [
2626
"import random\n",
2727
"\n",
28-
"from meteole import ArpegeForecast"
28+
"from meteole import ArpegeForecast # or AromeForecast, AromePIForecast"
2929
]
3030
},
3131
{
@@ -60,9 +60,7 @@
6060
"cell_type": "markdown",
6161
"metadata": {},
6262
"source": [
63-
"## Init Client Arpege\n",
64-
"\n",
65-
"To get Arome Forecast, import `AromeForecast`"
63+
"## Init Client"
6664
]
6765
},
6866
{
@@ -71,7 +69,7 @@
7169
"metadata": {},
7270
"outputs": [],
7371
"source": [
74-
"client = ArpegeForecast(application_id=APP_ID)"
72+
"client = ArpegeForecast(application_id=APP_ID) # or AromeForecast, AromePIForecast"
7573
]
7674
},
7775
{

tutorial/Fetch_AROME_forecasts.ipynb renamed to tutorial/Fetch_forecasts.ipynb

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"source": [
2525
"import random\n",
2626
"\n",
27-
"from meteole import AromeForecast"
27+
"from meteole import PiafForecast # or ArpegeForecast, PiafForecast, AromePIForecast"
2828
]
2929
},
3030
{
@@ -59,9 +59,7 @@
5959
"cell_type": "markdown",
6060
"metadata": {},
6161
"source": [
62-
"## Init Client Arome\n",
63-
"\n",
64-
"To get Arome Forecast, import `AromeForecast`"
62+
"## Init Client"
6563
]
6664
},
6765
{
@@ -71,7 +69,7 @@
7169
"outputs": [],
7270
"source": [
7371
"# init client\n",
74-
"arome = AromeForecast(application_id=APP_ID)"
72+
"client = PiafForecast(application_id=APP_ID) # or ArpegeForecast, PiafForecast, AromePIForecast"
7573
]
7674
},
7775
{
@@ -81,7 +79,7 @@
8179
"outputs": [],
8280
"source": [
8381
"# pick a random indicator\n",
84-
"random_indicator = random.choice(arome.INDICATORS)\n",
82+
"random_indicator = random.choice(client.INDICATORS)\n",
8583
"print(f\"Indicator: {random_indicator}\")"
8684
]
8785
},
@@ -91,7 +89,7 @@
9189
"metadata": {},
9290
"outputs": [],
9391
"source": [
94-
"arome.INDICATORS"
92+
"client.INDICATORS"
9593
]
9694
},
9795
{
@@ -107,7 +105,7 @@
107105
"metadata": {},
108106
"outputs": [],
109107
"source": [
110-
"arome.get_coverage(random_indicator)"
108+
"client.get_coverage(random_indicator)"
111109
]
112110
},
113111
{
@@ -126,7 +124,7 @@
126124
"outputs": [],
127125
"source": [
128126
"# First parameters to create a coverage_id (run and interval)\n",
129-
"df_capabilities = arome.get_capabilities()\n",
127+
"df_capabilities = client.get_capabilities()\n",
130128
"\n",
131129
"list_run_valid = list(df_capabilities[df_capabilities[\"indicator\"] == random_indicator][\"run\"].unique())\n",
132130
"list_interval_valid = list(df_capabilities[df_capabilities[\"indicator\"] == random_indicator][\"interval\"].unique())\n",
@@ -140,19 +138,12 @@
140138
"outputs": [],
141139
"source": [
142140
"# Then other parameters from a coverage_id\n",
143-
"description = arome.get_coverage_description(list_coverage_id_valid[0])\n",
141+
"description = client.get_coverage_description(list_coverage_id_valid[0])\n",
144142
"\n",
145143
"list_forecast_horizons_valid = description.get(\"forecast_horizons\", [])\n",
146144
"list_height_valid = description.get(\"heights\", [])\n",
147145
"list_pressure_id_valid = description.get(\"pressures\", [])"
148146
]
149-
},
150-
{
151-
"cell_type": "code",
152-
"execution_count": null,
153-
"metadata": {},
154-
"outputs": [],
155-
"source": []
156147
}
157148
],
158149
"metadata": {
@@ -171,7 +162,7 @@
171162
"name": "python",
172163
"nbconvert_exporter": "python",
173164
"pygments_lexer": "ipython3",
174-
"version": "3.11.11"
165+
"version": "undefined.undefined.undefined"
175166
},
176167
"toc": {
177168
"base_numbering": 1,

0 commit comments

Comments
 (0)