Usage: pgkyl collect [OPTIONS]
Collect many single-frame datasets into one with a new leading time axis.
Accepts ``collect(a, b)`` or ``collect([a, b])`` (flattened via
``gdatastate.flatten_datasets``). The per-dataset time stamp is taken from
``ctx['time']``, then ``ctx['frame']``, then the dataset's position in the sequence as
a fallback; frames are sorted by their (possibly folded) time stamp. Each result
copies the grid/ctx of its group's first frame (via ``_result``), so it stays the
caller's concrete dataset class.
Options:
-s, --sumdata [BOOLEAN] when True, sum each frame over all of its spatial axes
(keeping components) before stacking, so the output grid is
just the time axis. When False the full spatial data of each
frame is retained and the time axis becomes a new leading
dimension. [default: False]
-p, --period FLOAT when given, fold the time stamps into one period via ``(time
- offset) % period`` before sorting, producing a phase/epoch
axis instead of an unfolded time axis.
-o, --offset FLOAT phase offset subtracted before the modulo when ``period`` is
used. [default: 0.0]
-c, --chunk INTEGER when given (and non-zero), split the input into consecutive
groups of this length and collect each group separately,
returning a list of datasets (one per chunk; the last chunk
may be shorter) instead of a single dataset.
-t, --tag TEXT optional tag for the returned dataset(s).
-l, --label TEXT optional label for the returned dataset(s) (defaults to
``'collect'``).
--help Show this message and exit.