to_patch

method of dascore.workflow.meta.PatchMeta source

to_patch(
    self ,
    data ,
)

Return the patch this metadata and some data make.

The coords check the data’s shape on the way in, so a kernel which returned the wrong shape is refused here rather than somewhere later and stranger.