uwacan.positional.SensorArray.with_data#
- SensorArray.with_data(**kwargs)#
Create a copy of this sensor with additional information.
This method allows you to add new properties to an existing sensor. It’s particularly useful for adding sensor-specific information such as gain or recording channel data that is not part of the core sensor class.
- Parameters:
- **kwargsdict
Additional data to add to the sensor. Each keyword argument corresponds to a new data variable with one of the following input types:
DataArray: Must have a “sensor” dimension matching the existing sensor coordinate.dict: Keys should be the sensor names, and the dictionary must contain all sensors in the existing data.
scalar: A single scalar value that will be assigned to all sensors.
array_like: An array with a length matching the “sensor” dimension.