full

function of dascore.proc.basic source

full(
    patch ,
    fill_value ,
)

Return an identical patch with the data replaced by fill_value.

Parameters

Parameter Description
patch The patch to fill.
fill_value The value in the output patch.

Examples

import dascore as dc
patch = dc.get_example_patch()

# Get a patch identical to original but with data array containing
# Only 1s.
one_patch = patch.full(1.0)

# Same thing, except for 0s.
zero_patch = patch.full(0.0)