Convert flat field to float in flat_correct filter