cal
|
IN:
|
Calibration factor
|
cal_err
|
IN:
|
Calibration error
|
offset
|
IN:
|
Uncalibrated offset
|
offset_err
|
IN:
|
Uncalibrated offset error
|
data_type
|
IN:
|
Data type of uncalibrated data
|
The relationship between a value iy stored in a dataset and the actual value y is defined as:
|
By defining cal = 0.50 and offset = -200.0 and applying the calibration formula, the calibrated dataset iy[] becomes as follows:
|
The array iy[] can then be stored as integers.
FORTRAN
integer function dsscal(cal, cal_err, offset, offset_err, data_type)
real*8 cal, cal_err, offset, offset_err
integer data_type