Version: dev

Prefetch and windows

Decoding upcoming forcing epochs on background workers, bitwise identical to refresh, and windowing a provider by named dimension so each rank reads only its block.

OperationKindBindingsSummary
boundariesfunctionJuliaThe sorted, de-duplicated union B of the members’ refresh_times, in their own cadence unit.
cancelfunctionJuliaDrop all pending work at once (spec/prefetch.md §3.8).
sample_atfunctionJuliaThe dataset refresh(p, t) returns — data variables AND coordinates, with the same snap-down to the cadence anchor, the same file-local record, the same records_per_sample = 2…
sample_windows_atfunctionJuliaK windows at once: dataset i is identical — bitwise, coordinates included — to sample_at(with_window(p, windows[i]), t), but the source is fetched and decoded ONCE, over the…
select_formfunctionJuliaThe wire form of a window, Dict("dims" => Dict(dim => selector, ...)) — what a reader’s select option and reader_kwargs[:select] take (spec/prefetch.md §2.2).
startfunctionJuliaDeclare the order in which epochs will be taken and begin decoding ahead of it (spec/prefetch.md §3.3): :forward (1, …, n), :reverse (n, …, 1 — the adjoint’s backward…
takefunctionJuliaRemoves and returns a value from a Channel in order.
with_windowfunctionJuliaA NEW provider that shares p’s cache, reader, URL resolver and cadence and has the window w (a [DimWindow] or its wire Dict) baked in as reader_kwargs[:select].
dim_windowtypePython, Julia, RustA window that names its dimensions (spec/prefetch.md §2.2).
epoch_sampletypePython, Julia, RustEvery member’s Sample for one epoch: ep["U"].data.
prefetch_grouptypePython, Julia, RustBackground decode of upcoming forcing epochs (spec/prefetch.md §3).
prefetch_ordertypeRustThe order in which epochs will be taken (spec/prefetch.md §3.3).
prefetch_sampletypePython, Julia, RustOne member’s data for one epoch.

All topics