%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://stsci.edu/schemas/asdf/transform/ring2d-1.1.0"
title: >
  Two dimensional radially symmetric ring model.

description: >
  Two dimensional radially symmetric ring.

examples:
  -
    - A 2D disk centered at (x, y) = (0.5, 1.5), with an inner radius of 5.0, outer radius of 7.5 and amplitude 10.0.
    - asdf-standard-1.6.0
    - |
      !transform/ring2d-1.1.0
        amplitude: 10.0
        bounding_box:
        - [-6.0, 9.0]
        - [-7.0, 8.0]
        r_in: 5.0
        width: 2.5
        x_0: 0.5
        y_0: 1.5

allOf:
  - $ref: "transform-1.3.0"
  - type: object
    properties:
      amplitude:
        anyOf:
          - $ref: "../unit/quantity-1.2.0"
          - type: number
        description: Value of the disk function.
      x_0:
        anyOf:
          - $ref: "../unit/quantity-1.2.0"
          - type: number
        description: x center position of the disk.
      y_0:
        anyOf:
          - $ref: "../unit/quantity-1.2.0"
          - type: number
        description: y center position of the disk.
      r_in:
        anyOf:
          - $ref: "../unit/quantity-1.2.0"
          - type: number
        description: Inner radius of the ring.
      width:
        anyOf:
          - $ref: "../unit/quantity-1.2.0"
          - type: number
        description: Width of the ring.

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