metobs_toolkit.dataset.Dataset.subset_by_stations#

Dataset.subset_by_stations(stationnames: list, deepcopy: bool = False) Dataset[source]#

Create a subset of the dataset by selecting specific stations.

Parameters:
  • stationnames (list) – A list of station names to filter the dataset by.

  • deepcopy (bool, optional) – If True, creates a deep copy of the selected stations. Default is False.

Returns:

A new Dataset instance containing only the selected stations.

Return type:

Dataset