patch_assembly
Execute spool views: turn member instructions into loaded patches.
This is the consumer of the members (instruction) table that dascore.utils.chunk_plan produces and every spool view carries: it joins member rows to their source rows, loads each source patch through a caller-supplied loader, applies exact trims, and merges multi-member outputs. When the output size is known, a merge whose members the rows fully describe becomes a LazyArray recipe – the window of a stored array each member is, read into one output – and any other such merge streams loaded patches into a pre-allocated buffer; the rest concatenate. The spool owns what rows exist; this module owns how a row becomes a Patch.
Functions
| Name | Description |
|---|---|
| coord_at_stored_unit |
coord counted as the file counts it, or None when nothing says.
|
| coord_from_row |
The evenly sampled coordinate a row states for dim, or None.
|
| fill_to_row | Write the fill value into every sample an assembled output is missing. |
| patch_from_fill | The all-fill patch an output row with no members describes. |
| source_coord_from_row | The evenly sampled coordinate a member’s source states, or None. |
| source_range_column | The private column holding a member source’s own envelope value. |
Classes
| Name | Description |
|---|---|
| PatchAssembler | Assemble output patches from joined member rows. |