Difference between revisions of "Notes for Labelling FITS files"

From The SBN Wiki
Jump to navigation Jump to search
(Creation - Safety Save)
 
(Creation - Safety Save)
Line 13: Line 13:
 
7-bit ASCII character (could be any of the ''ASCII_*'' types)
 
7-bit ASCII character (could be any of the ''ASCII_*'' types)
 
|-
 
|-
| align="center" | 16 || SignedMSB2
+
| align="center" | 16 || SignedMSB2 (integer)
 
|-
 
|-
| align="center" | 32 || SignedMSB4
+
| align="center" | 32 || SignedMSB4 (integer)
 
|-
 
|-
| align="center" | -32 || IEEE754MSBSingle
+
| align="center" | -32 || IEEE754MSBSingle (float)
 
|-
 
|-
| align="center" | 64 || SignedMSB8
+
| align="center" | 64 || SignedMSB8 (integer)
 
|-
 
|-
| align="center" | -64 || IEEE754MSBDouble
+
| align="center" | -64 || IEEE754MSBDouble (float)
 
|}
 
|}
  

Revision as of 21:41, 22 February 2013

Fits tables, images and arrays are all compliant as they are with the PDS4 data formatting standards. Follow the guidelines below for filling in the PDS4 attribute values.

Scalar Data Types

Regardless if the data structure, the supported data types are strictly limited by the FITS standard. Here are the types you may encounter in FITS files (as specified by the BITPIX keyword), and their PDS4 equivalents:

BITPIX Value PDS Data Type(s)
8 UnsignedByte
-or-

7-bit ASCII character (could be any of the ASCII_* types)

16 SignedMSB2 (integer)
32 SignedMSB4 (integer)
-32 IEEE754MSBSingle (float)
64 SignedMSB8 (integer)
-64 IEEE754MSBDouble (float)


Headers

Use the PDS4 Header object to describe any type of FITS header.

  • For <encoding_type>, use "Character"
  • For <external_standard_id>, use "FITS 3.0". This is not a valid standard value, but the current value is not sufficiently specific. If you want to reference an earlier version of the FITS standard, check with your PDS consultant.
  • The <object_length> must be the number of FITS blocks comprising the header * 2880 (the size of a single FITS block).


2D Images and Arrays

3D Images and Arrays

Higher-Dimensional Arrays

Binary Tables

ASCII Tables