Validate Calibration Matrix for a SeaSondeRAPM Object
Source:R/SeaSondeRAPM.R
seasonder_validateCalibrationMatrixSeaSondeRAPM.Rd
This function validates the input calibration_matrix to ensure it meets the required specifications for use in a SeaSondeRAPM object.
Value
TRUE if the matrix is valid. The function will stop execution and display an error message if the matrix is invalid.
Details
The function performs the following validation checks:
Confirms that the input is a matrix.
Verifies that the matrix has exactly three rows.
Checks that the matrix contains only complex numbers.
If any of these validation steps fail, the function will log a fatal error and stop the execution using rlang::abort
.