Debian Codegraph @

asdf_astropy/resources/schemas/table/table-1.1.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.1.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/core/column-1.0.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.5.0
25 - |
26 !<tag:astropy.org:astropy/table/table-1.1.0>
27 columns:
28 - !core/column-1.0.0
29 data: !core/ndarray-1.0.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 - !core/column-1.0.0
39 data: !core/ndarray-1.0.0
40 source: 1
41 datatype: float64
42 byteorder: little
43 shape: [3]
44 description: DEC
45 name: b
46 - !core/column-1.0.0
47 data: !core/ndarray-1.0.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.5.0
59 - |
60 !<tag:astropy.org:astropy/table/table-1.1.0>
61 columns:
62 - !core/column-1.0.0
63 data: !core/ndarray-1.0.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 - !core/column-1.0.0
74 data: !core/ndarray-1.0.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 - !core/column-1.0.0
84 data: !core/ndarray-1.0.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/core/ndarray-1.0.0"
105 - $ref: "http://stsci.edu/schemas/asdf/time/time-1.1.0"
106 - $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
107 - $ref: "../coordinates/skycoord-1.0.0"
108 - $ref: "../coordinates/earthlocation-1.0.0"
109 - $ref: "../time/timedelta-1.0.0"
110 - $ref: "ndarraymixin-1.0.0"
111
112 colnames:
113 description: |
114 A list containing the names of the columns in the table (in order).
115 type: array
116 items:
117 - type: string
118
119 qtable:
120 description: |
121 A flag indicating whether or not the serialized type was a QTable
122 type: boolean
123 default: False
124
125 meta:
126 description: |
127 Additional free-form metadata about the table.
128 type: object
129 default: {}
130
131 additionalProperties: false
132 required: [columns, colnames]