metobs_toolkit.qc_collection.whitelist.WhiteSet.create_sensorwhitelist#
- WhiteSet.create_sensorwhitelist(stationname: str, obstype: str) SensorWhiteSet[source]#
Create a sensor-specific whitelist for a station and observation type.
Filters the white_records by station name and obstype to create a SensorWhiteSet containing only the relevant whitelisted timestamps.
- Parameters:
stationname (str) – Target station name to filter for.
obstype (str) – Target observation type to filter for.
- Returns:
A SensorWhiteSet instance containing whitelisted timestamps for the specified station and obstype combination.
- Return type:
Notes
If the white_records index does not contain a ‘datetime’ level but does match the station/obstype, all timestamps are whitelisted for that sensor.