grating_equation-0.7.0

A grating equation model.

Description

Supports two models:

  • given incident angle and wavelength compute the refraction/difraction angle

  • given an incident angle and a refraction angle compute the wavelength

Outline

Schema Definitions

This node must validate against all of the following:

Examples

AngleFromGratingEquation model.:

!<tag:stsci.edu:jwst_pipeline/grating_equation-0.7.0>
  groove_density: 2700.0
  order: 2.0
  output: angle

WavelengthFromGratingEquation model.:

!<tag:stsci.edu:jwst_pipeline/grating_equation-0.7.0>
  groove_density: 2700.0
  order: 2.0
  output: wavelength

Original Schema

%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://stsci.edu/schemas/jwst_pipeline/grating_equation-0.7.0"
tag: "tag:stsci.edu:jwst_pipeline/grating_equation-0.7.0"

title: >
  A grating equation model.
description: |
  Supports two models:
   - given incident angle and wavelength compute the refraction/difraction angle
   - given an incident angle and a refraction angle compute the wavelength

examples:
  -
    - AngleFromGratingEquation model.

    - |
        !<tag:stsci.edu:jwst_pipeline/grating_equation-0.7.0>
          groove_density: 2700.0
          order: 2.0
          output: angle

  -
    - WavelengthFromGratingEquation model.

    - |
        !<tag:stsci.edu:jwst_pipeline/grating_equation-0.7.0>
          groove_density: 2700.0
          order: 2.0
          output: wavelength

allOf:
  - $ref: "tag:stsci.edu:asdf/transform/transform-1.1.0"
  - type: object
    properties:
      groove_density:
        description: |
          The groove density of the grating
        type: number
      order:
        description: |
          Spectral order
        type: number

    required: [groove_density, order]