%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://stsci.edu/schemas/asdf/transform/box1d-1.2.0"
title: >
  One dimensional box model.

description: >
  One dimensional box.

examples:
  -
    - A 1D box of width 4.0, amplitude 10.0, centered at x=1.5.
    - |
      !transform/box1d-1.2.0
        amplitude: 10.0
        bounding_box: [-0.5, 3.5]
        width: 4.0
        x_0: 1.5

allOf:
  - $ref: "transform-1.4.0"
  - type: object
    properties:
      amplitude:
        anyOf:
          - tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
          - type: number
        description: Amplitude.
      x_0:
        anyOf:
          - tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
          - type: number
        description: Position of the center of the box model.
      width:
        anyOf:
          - tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
          - type: number
        description: Width of box.

    required: ['amplitude', 'x_0', 'width']
...
