subroutine omflatgen Retrieve flatfield image array from the CCF write output array and attributes to output file end subroutine omflatgen