Debian Codegraph @

asdf_astropy/resources/schemas/table/table-1.2.0.yaml

raw
1 %YAML 1.1
2 ---
3 $schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
4 id: "http://astropy.org/schemas/astropy/table/table-1.2.0"
5
6 title: >
7 A table.
8
9 description: |
10 A table is represented as a list of columns, where each entry is a
11 [column](https://asdf-standard.readthedocs.io/en/latest/generated/stsci.edu/asdf/table/column-1.1.0.html)
12 object, containing the data and some additional information.
13
14 The data itself may be stored inline as text, or in binary in either
15 row- or column-major order by use of the `strides` property on the
16 individual column arrays.
17
18 Each column in the table must have the same first (slowest moving)
19 dimension.
20
21 examples:
22 -
23 - A table stored in column-major order, with each column in a separate block
24 - asdf-standard-1.6.0
25 - |
26 !<tag:astropy.org:astropy/table/table-1.2.0>
27 columns:
28 - !table/column-1.1.0
29 data: !core/ndarray-1.1.0
30 source: 0
31 datatype: float64
32 byteorder: little
33 shape: [3]
34 description: RA
35 meta: {foo: bar}
36 name: a
37 unit: !unit/unit-1.0.0 deg
38 - !table/column-1.1.0
39 data: !core/ndarray-1.1.0
40 source: 1
41 datatype: float64
42 byteorder: little
43 shape: [3]
44 description: DEC
45 name: b
46 - !table/column-1.1.0
47 data: !core/ndarray-1.1.0
48 source: 2
49 datatype: [ascii, 1]
50 byteorder: big
51 shape: [3]
52 description: The target name
53 name: c
54 colnames: [a, b, c]
55
56 -
57 - A table stored in row-major order, all stored in the same block
58 - asdf-standard-1.6.0
59 - |
60 !<tag:astropy.org:astropy/table/table-1.2.0>
61 columns:
62 - !table/column-1.1.0
63 data: !core/ndarray-1.1.0
64 source: 0
65 datatype: float64
66 byteorder: little
67 shape: [3]
68 strides: [13]
69 description: RA
70 meta: {foo: bar}
71 name: a
72 unit: !unit/unit-1.0.0 deg
73 - !table/column-1.1.0
74 data: !core/ndarray-1.1.0
75 source: 0
76 datatype: float64
77 byteorder: little
78 shape: [3]
79 offset: 4
80 strides: [13]
81 description: DEC
82 name: b
83 - !table/column-1.1.0
84 data: !core/ndarray-1.1.0
85 source: 0
86 datatype: [ascii, 1]
87 byteorder: big
88 shape: [3]
89 offset: 12
90 strides: [13]
91 description: The target name
92 name: c
93 colnames: [a, b, c]
94
95 type: object
96 properties:
97 columns:
98 description: |
99 A list of columns in the table.
100 type: array
101 items:
102 anyOf:
103 - $ref: "http://stsci.edu/schemas/asdf/core/column-1.0.0"
104 - $ref: "http://stsci.edu/schemas/asdf/table/column-1.1.0"
105 - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.1.0"
106 - $ref: "http://stsci.edu/schemas/asdf/time/time-1.2.0"
107 - $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.2.0"
108 - $ref: "../coordinates/skycoord-1.0.0"
109 - $ref: "../coordinates/earthlocation-1.1.0"
110 - $ref: "../time/timedelta-1.1.0"
111 - $ref: "ndarraymixin-1.0.0"
112
113 colnames:
114 description: |
115 A list containing the names of the columns in the table (in order).
116 type: array
117 items:
118 - type: string
119
120 qtable:
121 description: |
122 A flag indicating whether or not the serialized type was a QTable
123 type: boolean
124 default: False
125
126 meta:
127 description: |
128 Additional free-form metadata about the table.
129 type: object
130 default: {}
131
132 additionalProperties: false
133 required: [columns, colnames]