def make_component_header(component, header):
    """
    Function that extracts information from components
    and adds it to the data header. The input header is
    expected to come from Data.coords.header by default.
    Parameters
    ----------
    component: glue Component
        Glue component to extract info from
    header: astropy.io.fits.header.Header
        Input header to be modified according to
        the input component
    """

    # Add units information
    header["BUNIT"] = component.units

    return header