Processing of secondary radiation and cosmic ray data measured at flight altitudes with the pixel detector Timepix