Debian Codegraph @

resources/schemas/stsci.edu/gwcs/spherical_cartesian-1.3.0.yaml

raw
1 %YAML 1.1
2 ---
3 $schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
4 id: "http://stsci.edu/schemas/gwcs/spherical_cartesian-1.3.0"
5
6 title: >
7 Convert coordinates between spherical and Cartesian coordinates.
8
9 description: |
10 This schema is for transforms which convert between spherical coordinates
11 (on the unit sphere) and Cartesian coordinates.
12
13 examples:
14 -
15 - Convert spherical coordinates to Cartesian coordinates.
16 - asdf-standard-1.6.0
17 - |
18 !<tag:stsci.edu:gwcs/spherical_cartesian-1.3.0>
19 transform_type: spherical_to_cartesian
20 wrap_lon_at: 360
21
22 -
23 - Convert Cartesian coordinates to spherical coordinates.
24 - asdf-standard-1.6.0
25 - |
26 !<tag:stsci.edu:gwcs/spherical_cartesian-1.3.0>
27 transform_type: cartesian_to_spherical
28 wrap_lon_at: 360
29
30 allOf:
31 - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.4.0"
32 - object:
33 properties:
34 wrap_lon_at:
35 description: Angle at which to wrap the longitude angle.
36 type: integer
37 enum: [180, 360]
38 default: 360
39 transform_type:
40 description: The type of transform/class to initialize.
41 type: string
42 enum: [spherical_to_cartesian, cartesian_to_spherical]
43
44 required: [transform_type, wrap_lon_at]
45 ...