metobs_toolkit.Dataset.get_station#
- Dataset.get_station(stationname)[source]#
Filter out one station of the Dataset.
Extract a metobs_toolkit.Station object from the dataset by name.
- Parameters:
stationname (string) – The name of the station.
- Returns:
The station object.
- Return type:
metobs_toolkit.Station
Examples
>>> import metobs_toolkit >>> >>> #Create your Dataset >>> dataset = metobs_toolkit.Dataset() #empty Dataset >>> >>> #Add observations to the Dataset >>> dataset.update_settings( ... input_data_file=metobs_toolkit.demo_datafile, ... input_metadata_file=metobs_toolkit.demo_metadatafile, ... template_file=metobs_toolkit.demo_template, ... ) >>> dataset.import_data_from_file() >>> >>> dataset.get_station('vlinder12') Station instance containing: *1 stations *['temp', 'humidity', 'wind_speed', 'wind_direction'] observation types *4320 observation records *0 records labeled as outliers *0 gaps *0 missing observations *records range: 2022-09-01 00:00:00+00:00 --> 2022-09-15 23:55:00+00:00 (total duration: 14 days 23:55:00) *time zone of the records: UTC *Coordinates are available for all stations.