1%YAML 1.1 2--- 3$schema: "http://stsci.edu/schemas/yaml-schema/draft-01" 4id: "http://astropy.org/schemas/astropy/fits/fits-1.0.0" 5title: > 6 A FITS file inside of an ASDF file. 7description: | 8 This schema is useful for distributing ASDF files that can 9 automatically be converted to FITS files by specifying the exact 10 content of the resulting FITS file. 11 12 Not all kinds of data in FITS are directly representable in ASDF. 13 For example, applying an offset and scale to the data using the 14 `BZERO` and `BSCALE` keywords. In these cases, it will not be 15 possible to store the data in the native format from FITS and also 16 be accessible in its proper form in the ASDF file. 17 18 Only image and binary table extensions are supported. 19 20examples: 21 - 22 - A simple FITS file with a primary header and two extensions 23 - | 24 !<tag:astropy.org:astropy/fits/fits-1.0.0> 25 - header: 26 - [SIMPLE, true, conforms to FITS standard] 27 - [BITPIX, 8, array data type] 28 - [NAXIS, 0, number of array dimensions] 29 - [EXTEND, true] 30 - [] 31 - ['', Top Level MIRI Metadata] 32 - [] 33 - [DATE, '2013-08-30T10:49:55.070373', The date this file was created (UTC)] 34 - [FILENAME, MiriDarkReferenceModel_test.fits, The name of the file] 35 - [TELESCOP, JWST, The telescope used to acquire the data] 36 - [] 37 - ['', Information about the observation] 38 - [] 39 - [DATE-OBS, '2013-08-30T10:49:55.000000', The date the observation was made (UTC)] 40 - data: !core/ndarray-1.0.0 41 datatype: float32 42 shape: [2, 3, 3, 4] 43 source: 0 44 byteorder: big 45 header: 46 - [XTENSION, IMAGE, Image extension] 47 - [BITPIX, -32, array data type] 48 - [NAXIS, 4, number of array dimensions] 49 - [NAXIS1, 4] 50 - [NAXIS2, 3] 51 - [NAXIS3, 3] 52 - [NAXIS4, 2] 53 - [PCOUNT, 0, number of parameters] 54 - [GCOUNT, 1, number of groups] 55 - [EXTNAME, SCI, extension name] 56 - [BUNIT, DN, Units of the data array] 57 - data: !core/ndarray-1.0.0 58 datatype: float32 59 shape: [2, 3, 3, 4] 60 source: 1 61 byteorder: big 62 header: 63 - [XTENSION, IMAGE, Image extension] 64 - [BITPIX, -32, array data type] 65 - [NAXIS, 4, number of array dimensions] 66 - [NAXIS1, 4] 67 - [NAXIS2, 3] 68 - [NAXIS3, 3] 69 - [NAXIS4, 2] 70 - [PCOUNT, 0, number of parameters] 71 - [GCOUNT, 1, number of groups] 72 - [EXTNAME, ERR, extension name] 73 - [BUNIT, DN, Units of the error array] 74 75allOf: 76 - tag: "tag:astropy.org:astropy/fits/fits-1.0.0" 77 - type: array 78 items: 79 type: object 80 properties: 81 data: 82 description: "The data part of the HDU." 83 anyOf: 84 - $ref: "tag:stsci.edu:asdf/core/ndarray-1.0.0" 85 - $ref: "../table/table-1.0.0" 86 # Retain backwards compatibility with table defined by ASDF Standard 87 - $ref: "tag:stsci.edu:asdf/core/table-1.0.0" 88 - type: "null" 89 default: null 90