1 parent 1a183c9 commit d11b25bCopy full SHA for d11b25b
1 file changed
rivretrieve/base.py
@@ -44,6 +44,17 @@ def get_gauge_ids() -> pd.DataFrame:
44
"""
45
pass
46
47
+ def get_metadata(self) -> pd.DataFrame:
48
+ """Fetches site metadata for the given site.
49
+
50
+ Returns:
51
+ A pandas DataFrame indexed by gauge_id, containing site metadata.
52
+ Returns an empty DataFrame if metadata fetching is not supported for this fetcher.
53
+ """
54
+ # Default implementation returns an empty DataFrame.
55
+ # Subclasses should override this method if metadata is available.
56
+ return pd.DataFrame().set_index("gauge_id")
57
58
@staticmethod
59
@abc.abstractmethod
60
def get_available_variables() -> tuple[str, ...]:
0 commit comments