# strip_legacy_coord_fields

<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#L64-L81)</td>
    </tr>
</table>

:::{.padded_bottom_10pt}

:::{.def_block}


<b>strip_legacy_coord_fields</b>(<br>
    &nbsp;&nbsp;&nbsp;&nbsp;attrs: <class 'dict
,<br>
    &nbsp;&nbsp;&nbsp;&nbsp;coord_names: collections.abc.Iterable[str]
,<br>
)-> 'dict'


:::

:::
Remove legacy flat coordinate metadata from an attr mapping.

Only exact ``{name}_{field}`` compositions for the provided coord names
are removed (plus the deprecated ``d_{name}`` spelling and the structural
``coords``/``dims`` keys). Nothing is inferred from key shape, so a true
attr like ``pulse_len`` survives unless the file really stores a ``pulse``
coordinate.

