Skip to content

Instantly share code, notes, and snippets.

@brianv0
Last active August 28, 2018 03:19
Show Gist options
  • Save brianv0/55f27a59b6cd88993a713dc00f0500af to your computer and use it in GitHub Desktop.
Save brianv0/55f27a59b6cd88993a713dc00f0500af to your computer and use it in GitHub Desktop.
Standard FITS headers maybe applicable to Tables
KEYWORD: (blank)
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: none
COMMENT: descriptive comment
DEFINITION: Columns 1-8 contain ASCII blanks. This keyword has no
associated value. Columns 9-80 may contain any ASCII text. Any number
of card images with blank keyword fields may appear in a header.
KEYWORD: AUTHOR
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: author of the data
DEFINITION: The value field shall contain a character string
identifying who compiled the information in the data associated with
the header. This keyword is appropriate when the data originate in a
published paper or are compiled from many sources.
KEYWORD: BITPIX
REFERENCE: FITS Standard
STATUS: manditory
HDU: any
VALUE: integer
RANGE: -64,-32,8,16,32
COMMENT: bits per data value
DEFINITION: The value field shall contain an integer. The absolute
value is used in computing the sizes of data structures. It shall
specify the number of bits that represent a data value.
KEYWORD: COMMENT
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: none
COMMENT: descriptive comment
DEFINITION: This keyword shall have no associated value; columns 9-80
may contain any ASCII text. Any number of COMMENT card images may
appear in a header.
KEYWORD: DATE
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: date of file creation
DEFINITION: The date on which the HDU was created, in the format
specified in the FITS Standard. The old date format was 'yy/mm/dd' and
may be used only for dates from 1900 through 1999. the new Y2K
compliant date format is 'yyyy-mm-dd' or 'yyyy-mm-ddTHH:MM:SS[.sss]'.
KEYWORD: DATE-OBS
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: date of the observation
DEFINITION: The date of the observation, in the format specified in the
FITS Standard. The old date format was 'yy/mm/dd' and may be used only
for dates from 1900 through 1999. The new Y2K compliant date format is
'yyyy-mm-dd' or 'yyyy-mm-ddTHH:MM:SS[.sss]'.
KEYWORD: EPOCH
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: real
COMMENT: equinox of celestial coordinate system
DEFINITION: The value field shall contain a floating point number
giving the equinox in years for the celestial coordinate system in
which positions are expressed. Starting with Version 1, the Standard
has deprecated the use of the EPOCH keyword and thus it shall not be
used in FITS files created after the adoption of the standard; rather,
the EQUINOX keyword shall be used.
KEYWORD: EQUINOX
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: real
COMMENT: equinox of celestial coordinate system
DEFINITION: The value field shall contain a floating point number
giving the equinox in years for the celestial coordinate system in
which positions are expressed.
KEYWORD: HISTORY
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: none
COMMENT: processing history of the data
DEFINITION: This keyword shall have no associated value; columns 9-80
may contain any ASCII text. The text should contain a history of steps
and procedures associated with the processing of the associated data.
Any number of HISTORY card images may appear in a header.
KEYWORD: INSTRUME
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: name of instrument
DEFINITION: The value field shall contain a character string
identifying the instrument used to acquire the data associated with the
header.
KEYWORD: NAXIS
REFERENCE: FITS Standard
STATUS: mandatory
HDU: any
VALUE: integer
RANGE: [0:999]
COMMENT: number of axes
DEFINITION: The value field shall contain a non-negative integer no
greater than 999, representing the number of axes in the associated
data array. A value of zero signifies that no data follow the header in
the HDU. In the context of FITS 'TABLE' or 'BINTABLE' extensions, the
value of NAXIS is always 2.
KEYWORD: NAXISn
REFERENCE: FITS Standard
STATUS: mandatory
HDU: any
VALUE: integer
RANGE: [0:]
COMMENT: size of the axis
DEFINITION: The value field of this indexed keyword shall contain a
non-negative integer, representing the number of elements along axis n
of a data array. The NAXISn must be present for all values n =
1,...,NAXIS, and for no other values of n. A value of zero for any of
the NAXISn signifies that no data follow the header in the HDU. If
NAXIS is equal to 0, there should not be any NAXISn keywords.
KEYWORD: OBJECT
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: name of observed object
DEFINITION: The value field shall contain a character string giving a
name for the object observed.
KEYWORD: OBSERVER
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: observer who acquired the data
DEFINITION: The value field shall contain a character string
identifying who acquired the data associated with the header.
KEYWORD: ORIGIN
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: organization responsible for the data
DEFINITION: The value field shall contain a character string
identifying the organization or institution responsible for creating
the FITS file.
KEYWORD: REFERENC
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: bibliographic reference
DEFINITION: The value field shall contain a character string citing a
reference where the data associated with the header are published.
KEYWORD: TDISPn
REFERENCE: FITS Standard
STATUS: reserved
HDU: table
VALUE: string
COMMENT: display format
DEFINITION: The value field of this indexed keyword shall contain a
character string describing the format recommended for the display of
the contents of field n. If the table value has been scaled, the
physical value shall be displayed. All elements in a field shall be
displayed with a single, repeated format. For purposes of display, each
byte of bit (type X) and byte (type B) arrays is treated as an unsigned
integer. Arrays of type A may be terminated with a zero byte. Only the
format codes in Table 8.6, discussed in section 8.3.4 of the FITS
Standard, are permitted for encoding. The format codes must be
specified in upper case. If the Bw.m, Ow.m, and Zw.m formats are not
readily available to the reader, the Iw.m display format may be used
instead, and if the ENw.d and ESw.d formats are not available, Ew.d may
be used. The meaning of this keyword is not defined for fields of type
P in the Standard but may be defined in conventions using such fields.
KEYWORD: TELESCOP
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: name of telescope
DEFINITION: The value field shall contain a character string
identifying the telescope used to acquire the data associated with the
header.
KEYWORD: TFIELDS
REFERENCE: FITS Standard
STATUS: mandatory
HDU: table
VALUE: integer
RANGE: [0:999]
COMMENT: number of columns in the table
DEFINITION: The value field shall contain a non-negative integer
representing the number of fields in each row of a 'TABLE' or
'BINTABLE' extension. The maximum permissible value is 999.
KEYWORD: TFORMn
REFERENCE: FITS Standard
STATUS: mandatory
HDU: table
VALUE: string
COMMENT: column data format
DEFINITION: The value field of this indexed keyword shall contain a
character string describing the format in which field n is encoded in a
'TABLE' or 'BINTABLE' extension.
KEYWORD: TNULLn
REFERENCE: FITS Standard
STATUS: reserved
HDU: table
VALUE: integer or string
COMMENT: value used to indicate undefined table element
DEFINITION: In ASCII 'TABLE' extensions, the value field for this
indexed keyword shall contain the character string that represents an
undefined value for field n. The string is implicitly blank filled to
the width of the field. In binary 'BINTABLE' table extensions, the
value field for this indexed keyword shall contain the integer that
represents an undefined value for field n of data type B, I, or J. The
keyword may not be used in 'BINTABLE' extensions if field n is of any
other data type.
KEYWORD: TSCALn
REFERENCE: FITS Standard
STATUS: reserved
HDU: table
VALUE: real
DEFAULT: 1.0
COMMENT: linear data scaling factor
DEFINITION: This indexed keyword shall be used, along with the TZEROn
keyword, when the quantity in field n does not represent a true
physical quantity. The value field shall contain a floating point
number representing the coefficient of the linear term in the equation,
physical_value = TZEROn + TSCALn * field_value, which must be used to
compute the true physical value of the field, or, in the case of the
complex data types C and M, of the real part of the field with the
imaginary part of the scaling factor set to zero. The default value
for this keyword is 1.0. This keyword may not be used if the format of
field n is A, L, or X.
KEYWORD: TTYPEn
REFERENCE: FITS Standard
STATUS: reserved
HDU: table
VALUE: string
COMMENT: column name
DEFINITION: The value field for this indexed keyword shall contain a
character string, giving the name of field n. It is recommended that
only letters, digits, and underscore (hexadecimal code 5F, ('_') be
used in the name. String comparisons with the values of TTYPEn
keywords should not be case sensitive. The use of identical names for
different fields should be avoided.
KEYWORD: TUNITn
REFERENCE: FITS Standard
STATUS: reserved
HDU: table
VALUE: string
COMMENT: column units
DEFINITION: The value field shall contain a character string describing
the physical units in which the quantity in field n, after any
application of TSCALn and TZEROn, is expressed. The units of all FITS
header keyword values, with the exception of measurements of angles,
should conform with the recommendations in the IAU Style Manual. For
angular measurements given as floating point values and specified with
reserved keywords, degrees are the recommended units (with the units,
if specified, given as 'deg').
KEYWORD: TZEROn
REFERENCE: FITS Standard
STATUS: reserved
HDU: table
VALUE: real
DEFAULT: 0.0
COMMENT: column scaling zero point
DEFINITION: This indexed keyword shall be used, along with the TSCALn
keyword, when the quantity in field n does not represent a true
physical quantity. The value field shall contain a floating point
number representing the true physical value corresponding to a value of
zero in field n of the FITS file, or, in the case of the complex data
types C and M, in the real part of the field, with the imaginary part
set to zero. The default value for this keyword is 0.0. This keyword
may not be used if the format of field n is A, L, or X.
KEYWORD: (blank)
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: none
COMMENT: descriptive comment
DEFINITION: Columns 1-8 contain ASCII blanks. This keyword has no associated value. Columns 9-80 may contain any ASCII text. Any number of card images with blank keyword fields may appear in a header.
KEYWORD: AUTHOR
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: author of the data
DEFINITION: The value field shall contain a character string identifying who compiled the information in the data associated with the header. This keyword is appropriate when the data originate in a published paper or are compiled from many sources.
KEYWORD: BITPIX
REFERENCE: FITS Standard
STATUS: manditory
HDU: any
VALUE: integer
RANGE: -64,-32,8,16,32
COMMENT: bits per data value
DEFINITION: The value field shall contain an integer. The absolute value is used in computing the sizes of data structures. It shall specify the number of bits that represent a data value.
KEYWORD: COMMENT
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: none
COMMENT: descriptive comment
DEFINITION: This keyword shall have no associated value; columns 9-80 may contain any ASCII text. Any number of COMMENT card images may appear in a header.
KEYWORD: DATE
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: date of file creation
DEFINITION: The date on which the HDU was created, in the format specified in the FITS Standard. The old date format was 'yy/mm/dd' and may be used only for dates from 1900 through 1999. the new Y2K compliant date format is 'yyyy-mm-dd' or 'yyyy-mm-ddTHH:MM:SS[.sss]'.
KEYWORD: DATE-OBS
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: date of the observation
DEFINITION: The date of the observation, in the format specified in the FITS Standard. The old date format was 'yy/mm/dd' and may be used only for dates from 1900 through 1999. The new Y2K compliant date format is 'yyyy-mm-dd' or 'yyyy-mm-ddTHH:MM:SS[.sss]'.
KEYWORD: EPOCH
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: real
COMMENT: equinox of celestial coordinate system
DEFINITION: The value field shall contain a floating point number giving the equinox in years for the celestial coordinate system in which positions are expressed. Starting with Version 1, the Standard has deprecated the use of the EPOCH keyword and thus it shall not be used in FITS files created after the adoption of the standard; rather, the EQUINOX keyword shall be used.
KEYWORD: EQUINOX
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: real
COMMENT: equinox of celestial coordinate system
DEFINITION: The value field shall contain a floating point number giving the equinox in years for the celestial coordinate system in which positions are expressed.
KEYWORD: HISTORY
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: none
COMMENT: processing history of the data
DEFINITION: This keyword shall have no associated value; columns 9-80 may contain any ASCII text. The text should contain a history of steps and procedures associated with the processing of the associated data. Any number of HISTORY card images may appear in a header.
KEYWORD: INSTRUME
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: name of instrument
DEFINITION: The value field shall contain a character string identifying the instrument used to acquire the data associated with the header.
KEYWORD: NAXIS
REFERENCE: FITS Standard
STATUS: mandatory
HDU: any
VALUE: integer
RANGE: [0:999]
COMMENT: number of axes
DEFINITION: The value field shall contain a non-negative integer no greater than 999, representing the number of axes in the associated data array. A value of zero signifies that no data follow the header in the HDU. In the context of FITS 'TABLE' or 'BINTABLE' extensions, the value of NAXIS is always 2.
KEYWORD: NAXISn
REFERENCE: FITS Standard
STATUS: mandatory
HDU: any
VALUE: integer
RANGE: [0:]
COMMENT: size of the axis
DEFINITION: The value field of this indexed keyword shall contain a non-negative integer, representing the number of elements along axis n of a data array. The NAXISn must be present for all values n = 1,...,NAXIS, and for no other values of n. A value of zero for any of the NAXISn signifies that no data follow the header in the HDU. If NAXIS is equal to 0, there should not be any NAXISn keywords.
KEYWORD: OBJECT
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: name of observed object
DEFINITION: The value field shall contain a character string giving a name for the object observed.
KEYWORD: OBSERVER
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: observer who acquired the data
DEFINITION: The value field shall contain a character string identifying who acquired the data associated with the header.
KEYWORD: ORIGIN
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: organization responsible for the data
DEFINITION: The value field shall contain a character string identifying the organization or institution responsible for creating the FITS file.
KEYWORD: REFERENC
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: bibliographic reference
DEFINITION: The value field shall contain a character string citing a reference where the data associated with the header are published.
KEYWORD: TDISPn
REFERENCE: FITS Standard
STATUS: reserved
HDU: table
VALUE: string
COMMENT: display format
DEFINITION: The value field of this indexed keyword shall contain a character string describing the format recommended for the display of the contents of field n. If the table value has been scaled, the physical value shall be displayed. All elements in a field shall be displayed with a single, repeated format. For purposes of display, each byte of bit (type X) and byte (type B) arrays is treated as an unsigned integer. Arrays of type A may be terminated with a zero byte. Only the format codes in Table 8.6, discussed in section 8.3.4 of the FITS Standard, are permitted for encoding. The format codes must be specified in upper case. If the Bw.m, Ow.m, and Zw.m formats are not readily available to the reader, the Iw.m display format may be used instead, and if the ENw.d and ESw.d formats are not available, Ew.d may be used. The meaning of this keyword is not defined for fields of type P in the Standard but may be defined in conventions using such fields.
KEYWORD: TELESCOP
REFERENCE: FITS Standard
STATUS: reserved
HDU: any
VALUE: string
COMMENT: name of telescope
DEFINITION: The value field shall contain a character string identifying the telescope used to acquire the data associated with the header.
KEYWORD: TFIELDS
REFERENCE: FITS Standard
STATUS: mandatory
HDU: table
VALUE: integer
RANGE: [0:999]
COMMENT: number of columns in the table
DEFINITION: The value field shall contain a non-negative integer representing the number of fields in each row of a 'TABLE' or 'BINTABLE' extension. The maximum permissible value is 999.
KEYWORD: TFORMn
REFERENCE: FITS Standard
STATUS: mandatory
HDU: table
VALUE: string
COMMENT: column data format
DEFINITION: The value field of this indexed keyword shall contain a character string describing the format in which field n is encoded in a 'TABLE' or 'BINTABLE' extension.
KEYWORD: TNULLn
REFERENCE: FITS Standard
STATUS: reserved
HDU: table
VALUE: integer or string
COMMENT: value used to indicate undefined table element
DEFINITION: In ASCII 'TABLE' extensions, the value field for this indexed keyword shall contain the character string that represents an undefined value for field n. The string is implicitly blank filled to the width of the field. In binary 'BINTABLE' table extensions, the value field for this indexed keyword shall contain the integer that represents an undefined value for field n of data type B, I, or J. The keyword may not be used in 'BINTABLE' extensions if field n is of any other data type.
KEYWORD: TSCALn
REFERENCE: FITS Standard
STATUS: reserved
HDU: table
VALUE: real
DEFAULT: 1.0
COMMENT: linear data scaling factor
DEFINITION: This indexed keyword shall be used, along with the TZEROn keyword, when the quantity in field n does not represent a true physical quantity. The value field shall contain a floating point number representing the coefficient of the linear term in the equation, physical_value = TZEROn + TSCALn * field_value, which must be used to compute the true physical value of the field, or, in the case of the complex data types C and M, of the real part of the field with the imaginary part of the scaling factor set to zero. The default value for this keyword is 1.0. This keyword may not be used if the format of field n is A, L, or X.
KEYWORD: TTYPEn
REFERENCE: FITS Standard
STATUS: reserved
HDU: table
VALUE: string
COMMENT: column name
DEFINITION: The value field for this indexed keyword shall contain a character string, giving the name of field n. It is recommended that only letters, digits, and underscore (hexadecimal code 5F, ('_') be used in the name. String comparisons with the values of TTYPEn keywords should not be case sensitive. The use of identical names for different fields should be avoided.
KEYWORD: TUNITn
REFERENCE: FITS Standard
STATUS: reserved
HDU: table
VALUE: string
COMMENT: column units
DEFINITION: The value field shall contain a character string describing the physical units in which the quantity in field n, after any application of TSCALn and TZEROn, is expressed. The units of all FITS header keyword values, with the exception of measurements of angles, should conform with the recommendations in the IAU Style Manual. For angular measurements given as floating point values and specified with reserved keywords, degrees are the recommended units (with the units, if specified, given as 'deg').
KEYWORD: TZEROn
REFERENCE: FITS Standard
STATUS: reserved
HDU: table
VALUE: real
DEFAULT: 0.0
COMMENT: column scaling zero point
DEFINITION: This indexed keyword shall be used, along with the TSCALn keyword, when the quantity in field n does not represent a true physical quantity. The value field shall contain a floating point number representing the true physical value corresponding to a value of zero in field n of the FITS file, or, in the case of the complex data types C and M, in the real part of the field, with the imaginary part set to zero. The default value for this keyword is 0.0. This keyword may not be used if the format of field n is A, L, or X.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment