pycsamt.metadata.instrument.SensorSpec#
- class pycsamt.metadata.instrument.SensorSpec(sensor_type='induction_coil', model='', frequency_range=None, notes='')[source]#
Bases:
objectSpecification for a single sensor (magnetic or electric).
- Parameters:
sensor_type ({"induction_coil", "fluxgate", "electrode", "other"}) – Physical transducer principle.
model (str) – Manufacturer model string, e.g.
"MTC-150H".frequency_range (tuple[float, float] or None) – (f_min, f_max) in Hz that the sensor is rated for.
notes (str) – Free-text annotation (calibration file name, mounting details, etc.).
Examples
>>> s = SensorSpec("induction_coil", "MTC-150H", (1e-5, 1e4)) >>> s.covers(0.1) True >>> s.covers(1e6) False
- __init__(sensor_type='induction_coil', model='', frequency_range=None, notes='')#
Methods
__init__([sensor_type, model, ...])covers(frequency_hz)Return True if frequency_hz lies within the rated band.
Attributes