We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9536cca + a3f3b88 commit 3344b6aCopy full SHA for 3344b6a
src/meteole/forecast.py
@@ -6,6 +6,7 @@
6
import tempfile
7
from abc import ABC, abstractmethod
8
from functools import reduce
9
+from importlib.util import find_spec
10
from typing import Any
11
12
import pandas as pd
@@ -15,6 +16,12 @@
15
16
from meteole.clients import BaseClient
17
from meteole.errors import MissingDataError
18
19
+if find_spec("cfgrib") is None:
20
+ raise ImportError(
21
+ "The 'cfgrib' module is required to read Arome and Arpege GRIB files. Please install it using:\n\n"
22
+ " conda install -c conda-forge cfgrib\n\n"
23
+ )
24
+
25
logger = logging.getLogger(__name__)
26
27
0 commit comments