rotation_sequence-1.0.0

A sequence of 3D rotations.

Description

A sequence of 3D rotations around different axes.

Outline

Schema Definitions

This node must validate against all of the following:

  • This type is an object with the following properties:

    • angles

      arrayRequired

      The angles of rotation.

      No length restriction

      Items in the array are restricted to the following types:

      number

    • axes_order

      stringRequired

      A sequence of “x”, “y” or “z” characters representing an axis of rotation. The number of characters must equal the number of angles.

      No length restriction

Examples

Rotate by angles [45, -60, 60] about axes ‘x’, ‘y’, ‘x’:

!<tag:stsci.edu:jwst_pipeline/rotation_sequence-1.0.0>
  angles: [45.0, -60., 60.]
  axes_order: xyx

Original Schema

%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://stsci.edu/schemas/jwst_pipeline/rotation_sequence-1.0.0"
title: >
  A sequence of 3D rotations.

description: |
  A sequence of 3D rotations around different axes.

examples:
  -
    - Rotate by angles [45, -60, 60] about axes 'x', 'y', 'x'

    - |
        !<tag:stsci.edu:jwst_pipeline/rotation_sequence-1.0.0>
          angles: [45.0, -60., 60.]
          axes_order: xyx


allOf:
  - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0"
  - type: object
    properties:
      angles:
        description: |
          The angles of rotation.
        type: array
        items:
          type: number
      axes_order:
        description: |
          A sequence of "x", "y" or "z" characters representing an axis of rotation.
          The number of characters must equal the number of angles.
        type: string

    required: [angles, axes_order]