CMAST_ERR_PRINT Function
Sets options for error printing in Math and Stat options.
Usage
CMAST_ERR_PRINT, lev
Input Parameters
lev—Integer specifying the printing level.
Discussion
Function CMAST_ERR_PRINT allows users to define how the Math and Stat options behave when an error occurs. Setting lev to two will force ‘the Math/Stat routine to print all error messages that occur (default). Setting lev to one will force the Math/Stat routine to print only Terminal and Fatal error messages that occur. Setting lev to zero will force the Math/Stat routine to not print any error messages.
Example
In this example, the function CSTRENDS is called with a data set that will generate a warning error. After the first call to CSTRENDS, a call is made to CMAST_ERR_PRINT to shut off printing of all but Terminal and Fatal errors.
x = [9.5, 9.875, 9.25, 9.5, 9.375, 9.0, 8.75, 8.625, 8.0, $
     8.25, 8.25, 8.375, 8.125, 7.875, 7.5, 7.875, 7.875, $
     7.75,7.75, 7.75, 8.0, 7.5, 7.5, 7.125, 7.25, 7.25, 7.125, $
     6.75,6.5, 7.0, 7.0, 6.75, 6.625, 6.625, 7.125, 7.75]
pstat = CSTRENDS(x)
; % CSTRENDS: Warning: STAT_AT_LEAST_ONE_TIE
; At least one tie is detected between the samples.
PM, pstat
; PV-WAVE prints the following:
; 0.999996
; 7.24792e-05
; 1.00000
; 3.81470e-06
; 1.00000
; 0.000244141
; 1.00000
; 0.000244141
; Call CMAST_ERR_PRINT to shut off printing of NOTE, ALERT and 
; WARNING errors.
CMAST_ERR_PRINT, 1
; Call CSTRENDS again. Note that error message ids not printed.