1%YAML 1.1 2--- 3$schema: "http://stsci.edu/schemas/yaml-schema/draft-01" 4id: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0" 5tag: "tag:stsci.edu:asdf/unit/quantity-1.1.0" 6 7title: > 8 Represents a Quantity object from astropy 9description: | 10 A Quantity object represents a value that has some unit 11 associated with the number. 12 13examples: 14 - 15 - A quantity consisting of a scalar value and unit 16 - | 17 !unit/quantity-1.1.0 18 value: 3.14159 19 unit: km 20 21 - 22 - A quantity consisting of a single value in an array 23 - | 24 !unit/quantity-1.1.0 25 value: !core/ndarray-1.0.0 [2.71828] 26 unit: A 27 28 - 29 - A quantity with an array of values 30 - | 31 !unit/quantity-1.1.0 32 value: !core/ndarray-1.0.0 [1, 2, 3, 4] 33 unit: s 34 35 - 36 - A quantity with an n-dimensional array of values 37 - | 38 !unit/quantity-1.1.0 39 value: !core/ndarray-1.0.0 40 datatype: float64 41 data: [[1, 2, 3], 42 [4, 5, 6]] 43 unit: pc 44 45 46type: object 47properties: 48 value: 49 description: | 50 A vector of one or more values 51 anyOf: 52 - type: number 53 - $ref: "../core/ndarray-1.0.0" 54 unit: 55 description: | 56 The unit corresponding to the values 57 $ref: unit-1.0.0 58required: [value, unit] 59... 60