postgkyl.eval_at_coord_proj¶
- postgkyl.eval_at_coord_proj(data, eval_dirs, eval_coords, *, inplace=False, tag=None, label=None)¶
Evaluate
dataateval_coordsineval_dirsand project onto the surviving directions’ target basis.- Parameters:
data – gkyl-backed (native modal) dataset in the modal value_form.
eval_dirs – Distinct 0-based integer direction indices to evaluate away (e.g. the selected
z0-z5flags at the CLI layer).eval_coords – Finite physical coordinates within the closed grid bounds, one per entry of
eval_dirsin the same order; in the dataset’s own computational grid sense (the same convention every other native-modal verb here, e.g.average, uses – not a separately mapped/deformed physical grid, which this architecture only ever produces post-interpolate()). At an interior cell face, use the cell on the higher-coordinate side; at either domain boundary, use the adjacent interior cell.inplace – Mutate and return
datainstead of creating a dataset.tag – Optional tag for the returned dataset.
label – Optional label for the returned dataset.
- Returns:
A new dataset over the surviving dimensions – or a single degenerate dimension (
grid=[0, 1]) when every direction is evaluated away, Gkeyll’s own convention since there is no true 0-dimensional basis – still modal and gkyl-native. Its basis metadata (basis_type,poly_order,num_cdim,num_vdim) reflects the TARGET basis Gkeyll picked, which can differ in type from the donor’s (e.g. eliminating a gkhybrid velocity direction can yield a plain serendipity target).- Raises:
ValueError –
datais NumPy-backed or non-modal, is missing basis metadata, oreval_dirs/eval_coordsdon’t match in length or range.