metobs_toolkit.station.Station.get_modeltimeseries#
- Station.get_modeltimeseries(obstype: str, modelname: str | None = None, modelvariable: str | None = None) ModelTimeSeries[source]#
Get the ModelTimeSeries instance for a specific observation type.
- Parameters:
obstype (str) – The observation type to retrieve.
modelname (str, optional) – The model name to filter by. Use this parameter when multiple model data sources exist for the same observation type. If None, no filtering by model name is applied. The default is None.
modelvariable (str, optional) – The model variable to filter by. Use this parameter when multiple model variables exist for the same observation type and model. If None, no filtering by model variable is applied. The default is None.
- Returns:
The ModelTimeSeries instance for the specified observation type.
- Return type:
- Raises:
MetObsModelDataError – If no model data is found for the specified parameters, or if multiple model data instances are found and additional filtering parameters (modelname, modelvariable) are needed to uniquely identify the target model data.