%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://stsci.edu/schemas/asdf/transform/sersic1d-1.1.0"
title: >
  One dimensional Sersic surface brightness profile.

description: >
  One dimensional Sersic surface brightness profile.

examples:
  -
    - $I(r)=10.0\exp\left\{-b_n\left[\left(\frac{r}{1.0}\right)^{(1/4)}-1\right]\right\}$, where $b_n$ is defined such that $r_e$ contains half the total luminosity (can be solved for numeriacally).
    - asdf-standard-1.6.0
    - |
      !transform/sersic1d-1.1.0 {amplitude: 10.0, n: 4.0, r_eff: 1.0}

allOf:
  - $ref: "transform-1.3.0"
  - type: object
    properties:
      amplitude:
        anyOf:
          - $ref: "../unit/quantity-1.2.0"
          - type: number
        description: Surface brightness at r_eff.
      r_eff:
        anyOf:
          - $ref: "../unit/quantity-1.2.0"
          - type: number
        description: Effective (half-light) radius.
      n:
        anyOf:
          - $ref: "../unit/quantity-1.2.0"
          - type: number
        description: Sersic index.

    required: ['amplitude', 'r_eff', 'n']
...
