frame-1.0.0

The base class of all coordinate frames.

Description

These objects are designed to be nested in arbitrary ways to build up transformation pipelines out of a number of low-level pieces.

Outline

Schema Definitions

This type is an object with the following properties:

  • name

    stringRequired

    A user-friendly name for the frame.

    No length restriction
  • axes_order

    array

    The order of the axes.

    No length restriction

    Items in the array are restricted to the following types:

    integer

  • axes_names

    array

    The name of each axis in this frame.

    No length restriction

    Items in the array must be any of the following types:

    • string

      No length restriction
    • null

  • reference_frame

    http://astropy.org/schemas/astropy/coordinates/frames/baseframe-1.0.0

    The reference frame.

  • unit

    array

    Units for each axis.

    No length restriction

    Items in the array are restricted to the following types:

  • axis_physical_types

    array

    An iterable of strings describing the physical type for each world axis. These should be names from the VO UCD1+ controlled Vocabulary (http://www.ivoa.net/documents/latest/UCDlist.html).

    No length restriction

    Items in the array are restricted to the following types:

    string

    No length restriction

Examples

A celestial frame in the ICRS reference frame. :

!<tag:stsci.edu:gwcs/celestial_frame-1.0.0>
  axes_names: [lon, lat]
  name: CelestialFrame
  reference_frame: !<tag:astropy.org:astropy/coordinates/frames/icrs-1.1.0>
    frame_attributes: {}
  unit: [!unit/unit-1.0.0 deg, !unit/unit-1.0.0 deg]

A pixel frame in three dimensions :

!<tag:stsci.edu:gwcs/frame-1.0.0>
  axes_names: [raster position, slit position, wavelength]
  axes_order: [0, 1, 2]
  axes_type: [SPATIAL, SPATIAL, SPECTRAL]
  name: pixel
  naxes: 3
  unit: [!unit/unit-1.0.0 pixel, !unit/unit-1.0.0 pixel, !unit/unit-1.0.0 pixel]

Original Schema

%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://stsci.edu/schemas/gwcs/frame-1.0.0"
title: |
  The base class of all coordinate frames.

description: |
  These objects are designed to be nested in arbitrary ways to build up
  transformation pipelines out of a number of low-level pieces.

examples:
  -
    - |
        A celestial frame in the ICRS reference frame.
    - |
        !<tag:stsci.edu:gwcs/celestial_frame-1.0.0>
          axes_names: [lon, lat]
          name: CelestialFrame
          reference_frame: !<tag:astropy.org:astropy/coordinates/frames/icrs-1.1.0>
            frame_attributes: {}
          unit: [!unit/unit-1.0.0 deg, !unit/unit-1.0.0 deg]

  -
    - |
        A pixel frame in three dimensions
    - |
        !<tag:stsci.edu:gwcs/frame-1.0.0>
          axes_names: [raster position, slit position, wavelength]
          axes_order: [0, 1, 2]
          axes_type: [SPATIAL, SPATIAL, SPECTRAL]
          name: pixel
          naxes: 3
          unit: [!unit/unit-1.0.0 pixel, !unit/unit-1.0.0 pixel, !unit/unit-1.0.0 pixel]

type: object
properties:
  name:
    description: |
      A user-friendly name for the frame.
    type: string

  axes_order:
    description: |
      The order of the axes.
    type: array
    items:
      type: integer

  axes_names:
    description: |
      The name of each axis in this frame.
    type: array
    items:
      anyOf:
        - type: string
        - type: 'null'

  reference_frame:
    description: |
      The reference frame.
    $ref: "http://astropy.org/schemas/astropy/coordinates/frames/baseframe-1.0.0"

  unit:
    description: |
      Units for each axis.
    type: array
    items:
      $ref: "http://stsci.edu/schemas/asdf/unit/unit-1.0.0"

  axis_physical_types:
    description: |
      An iterable of strings describing the physical type for each world axis.
      These should be names from the VO UCD1+ controlled Vocabulary
      (http://www.ivoa.net/documents/latest/UCDlist.html).
    type: array
    items:
      type:
        string

required: [name]
additionalProperties: true
...