| 1 |
%YAML 1.1 |
| 2 |
--- |
| 3 |
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01" |
| 4 |
id: "http://astropy.org/schemas/astropy/fits/fits-1.2.0" |
| 5 |
title: > |
| 6 |
A FITS file inside of an ASDF file. |
| 7 |
description: | |
| 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 |
|
| 20 |
examples: |
| 21 |
- |
| 22 |
- A simple FITS file with a primary header and two extensions |
| 23 |
- asdf-standard-1.6.0 |
| 24 |
- | |
| 25 |
!<tag:astropy.org:astropy/fits/fits-1.2.0> |
| 26 |
- header: |
| 27 |
- [SIMPLE, true, conforms to FITS standard] |
| 28 |
- [BITPIX, 8, array data type] |
| 29 |
- [NAXIS, 0, number of array dimensions] |
| 30 |
- [EXTEND, true] |
| 31 |
- [] |
| 32 |
- ['', Top Level MIRI Metadata] |
| 33 |
- [] |
| 34 |
- [DATE, '2013-08-30T10:49:55.070373', The date this file was created (UTC)] |
| 35 |
- [FILENAME, MiriDarkReferenceModel_test.fits, The name of the file] |
| 36 |
- [TELESCOP, JWST, The telescope used to acquire the data] |
| 37 |
- [] |
| 38 |
- ['', Information about the observation] |
| 39 |
- [] |
| 40 |
- [DATE-OBS, '2013-08-30T10:49:55.000000', The date the observation was made (UTC)] |
| 41 |
- data: !core/ndarray-1.1.0 |
| 42 |
datatype: float32 |
| 43 |
shape: [2, 3, 3, 4] |
| 44 |
source: 0 |
| 45 |
byteorder: big |
| 46 |
header: |
| 47 |
- [XTENSION, IMAGE, Image extension] |
| 48 |
- [BITPIX, -32, array data type] |
| 49 |
- [NAXIS, 4, number of array dimensions] |
| 50 |
- [NAXIS1, 4] |
| 51 |
- [NAXIS2, 3] |
| 52 |
- [NAXIS3, 3] |
| 53 |
- [NAXIS4, 2] |
| 54 |
- [PCOUNT, 0, number of parameters] |
| 55 |
- [GCOUNT, 1, number of groups] |
| 56 |
- [EXTNAME, SCI, extension name] |
| 57 |
- [BUNIT, DN, Units of the data array] |
| 58 |
- data: !core/ndarray-1.1.0 |
| 59 |
datatype: float32 |
| 60 |
shape: [2, 3, 3, 4] |
| 61 |
source: 1 |
| 62 |
byteorder: big |
| 63 |
header: |
| 64 |
- [XTENSION, IMAGE, Image extension] |
| 65 |
- [BITPIX, -32, array data type] |
| 66 |
- [NAXIS, 4, number of array dimensions] |
| 67 |
- [NAXIS1, 4] |
| 68 |
- [NAXIS2, 3] |
| 69 |
- [NAXIS3, 3] |
| 70 |
- [NAXIS4, 2] |
| 71 |
- [PCOUNT, 0, number of parameters] |
| 72 |
- [GCOUNT, 1, number of groups] |
| 73 |
- [EXTNAME, ERR, extension name] |
| 74 |
- [BUNIT, DN, Units of the error array] |
| 75 |
|
| 76 |
allOf: |
| 77 |
- type: array |
| 78 |
items: |
| 79 |
type: object |
| 80 |
properties: |
| 81 |
data: |
| 82 |
description: "The data part of the HDU." |
| 83 |
anyOf: |
| 84 |
- tag: "tag:stsci.edu:asdf/core/ndarray-1.*" |
| 85 |
- tag: "tag:astropy.org:astropy/table/table-1.*" |
| 86 |
- type: "null" |
| 87 |
default: null |