pycopm.utils.transformation module

Transform corner-point grid coordinates and rewrite associated properties.

pycopm.utils.transformation.transform_grid(dck: ConfigViaDeck) None

Apply the configured transformation to the corner-point grid.

Supported specifications are translate [x,y,z], scale [x,y,z], and rotatexy, rotatexz, or rotateyz followed by an angle in degrees. Rotations are performed about the coordinate-system origin.

Parameters:

dck – Deck configuration containing grid_transformation and source geometry.

pycopm.utils.transformation.transform_properties(dck: ConfigViaDeck, modified_deck: list[str]) None

Rewrite reservoir properties for a transformed grid.

Property values are unchanged because transformations modify only geometry.

Parameters:
  • dck – Deck configuration containing source properties and output dimensions.

  • modified_deck – Deck lines updated with generated property includes.