OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Python API referencev12.0

RaviDeclinedError

class optris_sdk.errors.RaviDeclinedError(NotSupportedError)

The RAVI import declined the file: not a failure, an answer.

Raised by optris_sdk.ravi.import_ravi when the file has no radiometric model, or is a short-wave recording and allow_short_wave was not given. The file was read, and the answer is that no honest temperature can be made from it with these options. optris_sdk.ravi.inspect says which of the two it was.

A subclass of NotSupportedError, because that is the status the import reports it with, OPTRIS_SDK_ERROR_NOT_SUPPORTED; a file that cannot be read at all is IoError instead. Not in the status table: the import is the only call that raises it, and it raises it itself.