DataFileError

exception typhon.datasets.dataset.DataFileError[source]

Superclass for any datafile problems

Upon reading a large amounts of data, some files will contain problems. When processing a year of data, we don’t want to fail entirely when one orbit file fails. But if there is a real bug somewhere, we probably do want to fail. Therefore, the typhon dataset framework is optionally resilient to datafile related errors, but only if those derive from DataFileError.

Therefore, users implementing their own reading routine may wish to catch errors arising from corrupted data, and raise an exception derived from DataFileError instead. That way, typhon knows that a problem is due to corrupted data and not due to a bug.