# translate_legacy_attrs

<table class=".origin_table">
    <tr>
        <td style="text-align: left; border-style: hidden">*function*  of [dascore.io.dasdae._compat](`dascore.io.dasdae._compat`)</td>
        <td style="text-align: right; border-style: hidden">[source](https://github.com/DASDAE/dascore/blob/dev/dascore/io/dasdae/_compat.py#L84-L178)</td>
    </tr>
</table>

:::{.padded_bottom_10pt}

:::{.def_block}


<b>translate_legacy_attrs</b>(<br>
    &nbsp;&nbsp;&nbsp;&nbsp;attrs
,<br>
    &nbsp;&nbsp;&nbsp;&nbsp;coord_names: collections.abc.Iterable[str]
 = (),<br>
)


:::

:::
Normalize legacy DASDAE attr payloads to flat coord metadata.

``coord_names`` are the coordinates actually stored in the patch group;
flat unit keys belonging to them are coordinate metadata rather than
value companions, whatever the attr payload itself claims.

