def format_index_array_attrs(series):
attrs = {}<EOL>for i, axis in zip(range(series.ndim), ('<STR_LIT:x>', '<STR_LIT:y>')):<EOL><INDENT>unit = '<STR_LIT>'.format(axis)<EOL>origin = '<STR_LIT>'.format(axis)<EOL>delta = '<STR_LIT>'.format(axis)<EOL>aunit = getattr(series, unit)<EOL>attrs.update({<EOL>unit: str(aunit),<EOL>origin: getattr(series, origin).to(aunit).value,<EOL>delta: getattr(series, delta).to(aunit).value,<EOL>})<EOL><DEDENT>return attrs<EOL>
Format metadata attributes for and indexed array

    This function is used to provide the necessary metadata to meet
    the (proposed) LIGO Common Data Format specification for series data
    in HDF5.