subtract-1.2.0

Perform a list of subtransforms in parallel and then subtract their results.

Description

Each of the subtransforms must have the same number of inputs and outputs.

Invertibility: This transform is not automatically invertible.

Outline

Schema Definitions

This node must validate against all of the following:

  • This type is an object with the following properties:

    • forward

      arrayRequired
      No length restriction

      Items in the array are restricted to the following types:

Examples

A list of transforms, performed in parallel, and then combined through subtraction.:

!transform/subtract-1.2.0
  forward:
    - !transform/shift-1.2.0
      offset: 2.0
    - !transform/shift-1.2.0
      offset: 3.0

Original Schema

%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://stsci.edu/schemas/asdf/transform/subtract-1.2.0"
title: >
  Perform a list of subtransforms in parallel and then
  subtract their results.

description: |
  Each of the subtransforms must have the same number of inputs and
  outputs.

  Invertibility: This transform is not automatically invertible.
examples:
  -
    - A list of transforms, performed in parallel, and then combined
      through subtraction.
    - |
      !transform/subtract-1.2.0
        forward:
          - !transform/shift-1.2.0
            offset: 2.0
          - !transform/shift-1.2.0
            offset: 3.0

allOf:
  - $ref: "transform-1.2.0"
  - properties:
      forward:
        type: array
        items:
          $ref: "transform-1.2.0"
    required: [forward]
...