import dascore as dc
patch = dc.get_example_patch()
described = patch.drop_data()
assert described.shape == patch.shape
assert described.dtype == patch.dtype
assert described.new(data=patch.data).equals(patch)drop_data
drop_data(
self ,
)-> ‘Patch’
Return this patch without its data.
The result keeps the coords, attrs and dtype, so it still describes the data; asking it for data raises. new(data=...) fills it again.