Fix infinities in h5 due to double to float16 conversion
When writing large uncertainties to the h5 very large ones are saved as inf
due to the conversion from double to half precision float. This implements a track cut to limit these uncertainties to a safe maximum.