scripts.loki_transform

Loki head script for source-to-source transformations concerning ECMWF physics, including “Single Column” (SCA) and CLAW transformations.

Classes

IdemTransformation()

A custom transformation pipeline that primarily does nothing, allowing us to test simple parse-unparse cycles.

class IdemTransformation

Bases: Transformation

A custom transformation pipeline that primarily does nothing, allowing us to test simple parse-unparse cycles.

transform_subroutine(routine, **kwargs)

Defines the transformation to apply to Subroutine items.

For transformations that modify Subroutine objects, this method should be implemented. It gets called via the dispatch method apply().

Parameters:
  • routine (Subroutine) – The subroutine to be transformed.

  • **kwargs (optional) – Keyword arguments for the transformation.