metobs_toolkit.station.Station.add_to_sensordata#
- Station.add_to_sensordata(new_sensordata: SensorData, force_update: bool = False) None[source]#
Add a new SensorData to the Station. This can only be done when the new_sensordata is not already present in self based on its id, or if force_update is true.
- Parameters:
new_sensordata (SensorData) – The new sensor data to be added. Must be an instance of SensorData.
force_update (bool, optional) – If True, overwrite existing sensor data for the same id. Default is False.
- Return type:
None