def dic2axisheader(dic):
    """
    Convert a Sparky parameter axis diction into a axisherder list.
    """
    al = [0] * 12
    al[0] = dic['nucleus'].encode()
    al[1] = dic['spectral_shift']
    al[2] = dic['npoints']
    al[3] = dic['size']
    al[4] = dic['bsize']
    al[5] = dic['spectrometer_freq']
    al[6] = dic['spectral_width']
    al[7] = dic['xmtr_freq']
    al[8] = dic['zero_order']
    al[9] = dic['first_order']
    al[10] = dic['first_pt_scale']
    al[11] = dic['extended']
    return al
