razorback.calibrations module
a collection of calibration functions.
- razorback.calibrations.metronix(filename, sampling_rate, chopper_on_limit=None, version_pattern=None, alpha_map=None)
return calibration function for metronix devices
- Parameters:
filename (string) – data file name resolved with data.get_data_file(filename, calibrations.METRONIX_DATA_PATH)
sampling_rate (float)
chopper_on_limit (float [optional]) – threshold for activating chopper default to METRONIX_CHOPPER_ON_LIMIT
version_pattern (str [optional]) – regexp pattern for extracting sensor version identifier from filename default to METRONIX_VERSION_PATTERN
alpha_map (dict (version->alpha) [optional]) – alpha value to use for sensor version default to METRONIX_ALPHA_MAP
- Returns:
calibration function
- Return type:
f(freq) -> calib
Notes
The chopper on/off switch is based on the sampling rate and the chopper limit:
sampling_rate <= chopper_on_limit -> chopper on
sampling_rate > chopper_on_limit -> chopper off