postgkyl.represent

postgkyl.represent(data, *, to, num_quad=None, inplace=False, tag=None, label=None)

Convert a native dataset to the to value_form (explicitly).

By default, quad uses Gkeyll’s basis-owned quadrature nodes and modal/quadrature transforms. A modal -> quad -> modal round trip preserves the expansion. Explicit num_quad selects a uniform Gauss rule instead; projection back uses the rule and ordering stored with the data. nodal <-> quad composes through modal.

Parameters:
  • data – Native dataset to convert.

  • to – Target value representation.

  • num_quad – Optional Gauss points per direction; omitted uses Gkeyll’s rule.

  • inplace – Mutate and return data instead of creating a dataset.

  • tag – Optional tag for the returned dataset.

  • label – Optional label for the returned dataset.

CLI: represent