pyPDAF.PDAFomi.check_error

pyPDAF.PDAFomi.check_error()

This function returns the value of the PDAF-OMI internal error flag.

Since PDAF-OMI executes internal routines in which errors could occur due to an inconsistent configuration of the observations. Directly returning an error flag as a subroutine argument is not always possible. For this reason there is this separate routine to check for the error flag.

The errors that are checked by PDAF-OMI relate to the configuration of the observations, e.g. it is checked whether some dimensions are consistent.

This can be useful if an error occurred PDAF-OMI also prints an error message, but it does not stop the program.

Parameters:

flag (int) – Error flag

Returns:

flag – Error flag

Return type:

int