order_headers

sofia_redux.toolkit.utilities.fits.order_headers(headers)[source]

Order headers based on contents.

Return the earliest header and the header list sorted by date. B nods are never returned as the earliest header.

Parameters:
headersarray_like of fits.Header
Returns:
2-tuple

fits.Header : earliest header list of fits.Header : ordered headers