1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285
|
<pre>Network Working Group S. Allen
Request for Comments: 4047 UCO/Lick Observatory
Category: Informational D. Wells
National Radio Astronomy Observatory
April 2005
<span class="h1">MIME Sub-type Registrations for</span>
<span class="h1">Flexible Image Transport System (FITS)</span>
Status of This Memo
This memo provides information for the Internet community. It does
not specify an Internet standard of any kind. Distribution of this
memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2005).
Abstract
This document describes the registration of the Multipurpose Internet
Mail Extensions (MIME) sub-types to be used by the international
astronomical community for the interchange of Flexible Image
Transport System (FITS) files. The encoding is defined by the
published FITS standard documents. The FITS format has been in use
since 1979, and almost all data from astronomical observations are
interchanged by using FITS.
Table of Contents
<a href="#section-1">1</a>. Introduction.................................................. <a href="#page-2">2</a>
<a href="#section-2">2</a>. Conventions Used in this Document............................. <a href="#page-2">2</a>
<a href="#section-3">3</a>. Overview...................................................... <a href="#page-2">2</a>
<a href="#section-4">4</a>. FITS Definition............................................... <a href="#page-3">3</a>
<a href="#section-4.1">4.1</a>. FITS Structure.......................................... <a href="#page-3">3</a>
<a href="#section-4.2">4.2</a>. History of FITS Features................................ <a href="#page-5">5</a>
<a href="#section-4.3">4.3</a>. Stability of the FITS definition........................ <a href="#page-6">6</a>
<a href="#section-4.4">4.4</a>. Portability of FITS files............................... <a href="#page-7">7</a>
<a href="#section-4.5">4.5</a>. Application Programming Interfaces to FITS.............. <a href="#page-7">7</a>
<a href="#section-4.6">4.6</a>. FITS File Conformance Testing........................... <a href="#page-8">8</a>
<a href="#section-4.7">4.7</a>. Archives That Distribute FITS Files..................... <a href="#page-8">8</a>
<a href="#section-5">5</a>. IANA Considerations........................................... <a href="#page-9">9</a>
<a href="#section-5.1">5.1</a>. Registration of application/fits........................ <a href="#page-10">10</a>
<a href="#section-5.2">5.2</a>. Registration of image/fits.............................. <a href="#page-14">14</a>
<a href="#section-6">6</a>. References.................................................... <a href="#page-19">19</a>
<a href="#section-6.1">6.1</a>. Normative References.................................... <a href="#page-19">19</a>
<span class="grey">Allen & Wells Informational [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
<a href="#section-6.2">6.2</a>. Informative References.................................. <a href="#page-20">20</a>
<a href="#section-7">7</a>. Security Considerations....................................... <a href="#page-21">21</a>
<a href="#section-8">8</a>. Contributors.................................................. <a href="#page-21">21</a>
<a href="#section-9">9</a>. Acknowledgements.............................................. <a href="#page-22">22</a>
Authors' Addresses................................................ <a href="#page-22">22</a>
Full Copyright Statement.......................................... <a href="#page-23">23</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The FITS file format [<a href="#ref-FITS" title=""FITS: A Flexible Image Transport System"">FITS</a>] was designed in order to facilitate the
interchange of astronomical image data between observatories. FITS
provides a means of transporting arrays and tables of data and
keyword/value pairs of metadata. FITS is defined by standards
documents that are approved by the International Astronomical Union
(IAU, <a href="http://www.iau.org/">http://www.iau.org/</a>) and published in refereed journals.
Before the inception of HTTP, astronomers used the Internet to
exchange FITS files. Multiple unofficial media types for FITS files
[<a href="#ref-ASU" title=""Astronomical Server URL"">ASU</a>] came into use shortly after the inception of the WWW and have
remained in use. Currently (2005) the international astronomical
community is pursuing many cooperative efforts (e.g., [<a href="#ref-IVOA">IVOA</a>], [<a href="#ref-NVO">NVO</a>],
[<a href="#ref-AstroGrid">AstroGrid</a>], [<a href="#ref-AVO">AVO</a>]) to produce web services that provide astronomical
data. The exchange of FITS files is a fundamental element of the
prototypes for these web services [<a href="#ref-SIAP" title=""Simple Image Access Prototype Specification"">SIAP</a>]. The astronomical community
has to agree to use one set of media types for FITS files in order to
promote interoperability of its various services.
In its simplest form, FITS is used as a means of transporting
astronomical image data in a raster form along with coordinate
information and other standard and locally defined metadata. In such
applications FITS is much like the well-known TIFF format [<a href="#ref-TIFF" title=""TIFF Revision 6.0"">TIFF</a>] with
the addition of the GeoTIFF tags [<a href="#ref-GeoTIFF" title=""GeoTIFF Format Specification"">GeoTIFF</a>]. However, FITS is capable
of describing a much broader range of data than 2-dimensional
rasters. A consensus has developed in the FITS community that two
media types are needed: one for images and one for all other cases.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions Used in this Document</span>
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in <a href="./rfc2119">RFC-2119</a> [<a href="#ref-Require" title=""Key words for use in RFCs to Indicate Requirement Levels"">Require</a>].
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Overview</span>
This document describes the registration of the MIME media sub-types
"application/fits" and "image/fits".
<span class="grey">Allen & Wells Informational [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
In 1988 the International Astronomical Union formed the FITS Working
Group (IAUFWG) to oversee matters pertaining to the evolution of the
FITS data format. The IAUFWG has approved the submission of this
document and the registration of these two MIME types.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. FITS Definition</span>
FITS is defined by a document approved by the International
Astronomical Union (IAU) and published in the journal Astronomy &
Astrophysics [<a href="#ref-NOST" title=""Definition of the Flexible Image Transport System (FITS)"">NOST</a>]. Conventions for additional keywords used in
FITS files are proposed by interested parties and negotiated and
reviewed by ad hoc committees of the FITS community. If such usage
of additional keywords is approved by national committees and the
IAUFWG then they become new reserved keywords in the FITS standard
and are published in an ongoing series of papers (e.g., [WCS1,
WCS2]).
Copies of the standard documents can be found at the following sites:
<a href="http://fits.gsfc.nasa.gov/">http://fits.gsfc.nasa.gov/</a>
<a href="http://archive.stsci.edu/fits/">http://archive.stsci.edu/fits/</a>
<a href="http://www.cv.nrao.edu/fits/">http://www.cv.nrao.edu/fits/</a>
<a href="http://heasarc.gsfc.nasa.gov/docs/heasarc/fits.html">http://heasarc.gsfc.nasa.gov/docs/heasarc/fits.html</a>
Although a brief structure and feature description is provided in
this section as background information, the reader is directed to the
FITS standards documents to obtain complete feature and technical
details.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. FITS Structure</span>
A FITS file consists of a sequence of one or more header and data
units (HDUs) optionally followed by special records. The structure
of a FITS file is based on blocks with a length of 2880 8-bit bytes
(23040 bits). This size was chosen because it is evenly divisible by
the byte and word lengths of all known computer systems. All FITS
files have lengths that are integral multiples of this block size.
Each FITS header consists of a sequence of one or more 2880-byte
blocks that hold 36 80-character records (36*80=2880). The records
consist of ASCII keyword/value pairs plus optional comments. The
character set is the 7-bit printing ASCII codes, including the ASCII
space. In particular, the control codes CR, LF, FF, TAB and NUL are
not used in FITS headers. The keywords are up to 8 characters in
length. Some keywords are mandatory, and their meaning is rigidly
<span class="grey">Allen & Wells Informational [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
prescribed. Among these are keywords that describe the structure and
size of the subsequent data array. The standard reserves other
keywords for the purpose of conveying specifically defined items of
metadata. Keywords that are neither mandatory nor reserved may be
inserted with semantics that are defined by local conventions. (Some
local conventions have later been adopted into standardized
practice.) The end of the header is signified by a block containing
the keyword "END". A simple example of a FITS header for a digital
image, using only keywords that were specified in the initial FITS
Agreement of March 1979 [<a href="#ref-FITS" title=""FITS: A Flexible Image Transport System"">FITS</a>], is as follows:
1 2 3 4 5 6
1234567890123456789012345678901234567890123456789012345678901234567..
SIMPLE = T / file does conform to FITS standard
BITPIX = 16 / 16-bit twos-complement pixel values
NAXIS = 2 / 2-dimensional image
NAXIS1 = 512 / first axis length
NAXIS2 = 512 / second axis length
COMMENT -----------------------------------------------------
COMMENT FITS (Flexible Image Transport System) format is defined
COMMENT in 'Astronomy and Astrophysics', volume 376, page 359;
COMMENT bibcode: 2001A&A...376..359H
COMMENT -----------------------------------------------------
ORIGIN = 'Lick Observatory ' /
DATE = '2003-11-22T05:23:45' / when this file was written
END
(These 13 records are followed by 23 80-character records of ASCII
spaces, to pad the header block to the 2880-byte FITS block size.)
The first keyword/value pair, SIMPLE=T, is the signature of FITS; all
FITS files begin with these characters. BITPIX is the second keyword
of all FITS files; legal values for it are 8, 16, 32, -32 and -64.
NAXIS is the third keyword of all FITS files; legal values for it are
0 to 999. NAXIS=0 is legal, and implies that there is no image data
matrix associated with the header (and the NAXISi keywords must not
be present); this value is common for files that will be given the
media type "application/fits" as discussed in <a href="#section-5.1">section 5.1</a> of this
document. NAXIS=2 is the value most often used for files that will
be given the media type "image/fits", as discussed in <a href="#section-5.2">section 5.2</a> of
this document (NAXIS=3 FITS images are also common). The COMMENT
records will be ignored by FITS reading software, but are used here
to specify the precise journal citation for the FITS standard, an
item of information that is important for archiving on timescales of
decades. The ORIGIN keyword is commonly used in FITS files to encode
the name of the institution where the file was produced. The DATE
keyword is used to convey the timestamp for the file (whereas the
<span class="grey">Allen & Wells Informational [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
keyword DATE-OBS is used to convey observation start times). FITS
headers commonly contain a vast variety of additional keywords used
to encode metadata. In particular, a digital image header will often
include keywords to specify the precise celestial coordinates of the
pixels of the 2-D matrix, with conventions that became part of the
FITS standard in 2002 (see [<a href="#ref-WCS2" title=""Representations of celestial coordinates in FITS"">WCS2</a>]). Finally, the above example
demonstrates how, in addition to the COMMENT records, 60% of the
bytes in keyword=value records in FITS headers are reserved for
comments. Although the simple header example above is contained in
only one FITS block, multi-block FITS headers are commonly
interchanged.
Following each header is a data unit that consists of a sequence of
zero or more 2880-byte blocks. In accordance with the description in
the keywords of their header, these blocks contain an N-dimensional
data array, optionally followed by other small groups of array data.
In most cases, the data array represents either an N-dimensional
array of image pixel values or a 2-dimensional array of tabular data.
Following the HDUs a FITS file may contain zero or more 2880-byte
blocks of special records. The standard does not specify anything
about their content. (This convention for special records is not
known to have been used for any purpose other than prototyping new
elements of the standard, such as random groups and BINTABLE.)
The initial HDU in a FITS file is known as the primary HDU (PHDU);
any subsequent HDU is known as an extension HDU (XHDU). The keyword
content of the PHDU is distinct (a PHDU requires a slight alteration
before it can become an XHDU, and most types of XHDU cannot become a
PHDU). A PHDU may have a data array consisting of zero elements, and
this will often be the case for FITS files intended to communicate
tables and multiple images. An XHDU may be one of several standard
types, or it may be another conforming type. Standard types of XHDU
include "IMAGE" (containing an N-dimensional data array similar in
most respects to the PHDU), "TABLE" (containing a 2-dimensional table
of ASCII character data), and "BINTABLE" (containing a 2-dimensional
table of binary data whose elements may themselves be multi-
dimensional arrays).
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. History of FITS Features</span>
In 1981 the original definition of FITS described a single HDU
containing one multi-dimensional image array [<a href="#ref-FITS" title=""FITS: A Flexible Image Transport System"">FITS</a>], as illustrated
by the sample header shown in <a href="#section-4.1">section 4.1</a>. Subsequent agreements
have used the original framework of HDUs and keyword/value pairs to
extend FITS while preserving the validity of all existing files.
FITS now has standard means of describing multiple arrays of image
data and/or multiple tables of numeric and character information.
<span class="grey">Allen & Wells Informational [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
Brief highlights of the history of FITS
- 1979: Initial FITS Agreement and first interchange of files
- 1980: Random groups convention developed
- 1981: Published original (single HDU) definition [<a href="#ref-FITS" title=""FITS: A Flexible Image Transport System"">FITS</a>]
- 1981: Published random groups definition [<a href="#ref-GROUPS" title=""An extension of FITS for groups of small arrays of data"">GROUPS</a>]
- 1982: Formally endorsed by the IAU
- 1988: Defined rules for multiple HDUs [<a href="#ref-XTENSION" title=""Generalized extensions and blocking factors for FITS"">XTENSION</a>]
- 1988: FITS Working Group established by IAU [<a href="#ref-IAUFWG" title=""Transactions of the IAU, Vol. XXB 1988, Proceedings of the Twentieth General Assembly Baltimore 1988"">IAUFWG</a>]
- 1988: Extended to include ASCII tables [<a href="#ref-TABLE" title=""The FITS tables extension"">TABLE</a>]
- 1990: Extended to include IEEE floating-point data
- 1994: Extended to multiple image arrays [<a href="#ref-IMAGE" title=""The FITS image extension"">IMAGE</a>]
- 1995: Extended to binary tables [<a href="#ref-BINTABLE" title=""Binary table extension to FITS"">BINTABLE</a>]
- 1997: Adopted a Y2K-compliant date format
- 2001: Reiterated existing standard in one paper [<a href="#ref-NOST" title=""Definition of the Flexible Image Transport System (FITS)"">NOST</a>]
- 2002: Approved conventions for world coordinates [<a href="#ref-WCS1" title=""Representations of world coordinates in FITS"">WCS1</a>, <a href="#ref-WCS2" title=""Representations of celestial coordinates in FITS"">WCS2</a>]
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. Stability of the FITS Definition</span>
After the adoption of FITS by the IAU in 1982, some in the emerging
community of FITS users realized that there would be tension between
the need for archival stability and the need for evolution. In order
to satisfy both of these requirements they set up a controlled
parliamentary process. At the time of the Generalized Extensions
Agreement [<a href="#ref-XTENSION" title=""Generalized extensions and blocking factors for FITS"">XTENSION</a>], the meta-agreement that controls the evolution
of FITS, the FITS community adopted the guiding principle "Once FITS,
always FITS". Under this rule, no change may be made to FITS that
invalidates existing files. Changes to the FITS standard occur only
after action by the IAU FITS Working Group (FWG). The FWG acts only
after approval by regional working groups that coordinate FITS
activity in various parts of the world.
FITS has been adopted as the archival format for image data and
interferometric data obtained by many ground-based observatories and
for all data from many spacecraft. Many astrophysical archives store
<span class="grey">Allen & Wells Informational [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
their data in FITS format, and most astronomical catalog data has
been transcribed into FITS files. The many terabytes of data in
these archives contribute to the stability of the FITS standard.
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Portability of FITS files</span>
Eric Greisen, one of the authors of the original document [<a href="#ref-FITS" title=""FITS: A Flexible Image Transport System"">FITS</a>],
relates that in 1979
[t]he first FITS files were written by a PL/I program on an IBM
360 under OS/MFT (32-bit, twos-complement numbers and 8-bit EBCDIC
characters) and were read by a Fortran program executing on a CDC
6400 under SCOPE (60-bit, ones-complement numbers and 6-bit
"Display Code" characters). [<a href="#ref-Remark" title=""FITS: A remarkable achievement in information exchange"">Remark</a>]
Subsequent evolution of computing hardware and FITS over 25 years has
not degraded this ability to transfer the data content.
The structure of FITS files is extremely general, and this
necessarily complements the nature of astronomical data. FITS is
used to store observations of the entire electromagnetic spectrum
from radio to gamma rays, from ground-based observatories and from
spacecraft. FITS is also used to communicate physical properties
other than radiation intensity; these may be inferred from
observations or calculated by theoretical models. The pedigree of
data in a FITS file typically varies among disciplines; FITS may be
used to store raw and uncalibrated data, completely reduced and
calibrated data, or both. Nevertheless, the FITS standard provides
that the syntactic content of the data and metadata are unambiguously
available to posterity.
Observatories have developed numerous local conventions for the
storage and transfer of data peculiar to their instrumentation and
purview. Application software for handling FITS files from different
regions of the electromagnetic spectrum has been largely disjoint.
For a FITS file that consists of multiple HDUs there are no widely
established conventions governing the meaning of, interrelations
between, and suggested use of the data sets. Recognition of any
local conventions used for FITS data has often been based on
heuristics of the additional (non-standard) keyword/value pairs.
Fully understanding the semantic content of a FITS file usually
requires an external data dictionary.
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a>. Application Programming Interfaces to FITS</span>
Although the definition of FITS is expressed in terms of the bit
content of the files, there are widely supported application
programming interfaces (APIs) which simplify the task of manipulating
<span class="grey">Allen & Wells Informational [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
FITS files. Interfaces exist for many languages and operating
systems. A partial list of APIs follows:
CFITSIO <a href="http://heasarc.gsfc.nasa.gov/fitsio/fitsTcl">http://heasarc.gsfc.nasa.gov/fitsio/</a>
<a href="http://heasarc.gsfc.nasa.gov/fitsio/fitsTcl">fitsTcl</a> <a href="http://heasarc.gsfc.nasa.gov/ftools/fv/fitsTcl_home.html">http://heasarc.gsfc.nasa.gov/ftools/fv/fitsTcl_home.html</a>
WCSLIB <a href="http://www.atnf.csiro.au/people/mcalabre/WCS/PyFITS">http://www.atnf.csiro.au/people/mcalabre/WCS/</a>
<a href="http://www.atnf.csiro.au/people/mcalabre/WCS/PyFITS">PyFITS</a> <a href="http://www.stsci.edu/resources/software_hardware/pyfits">http://www.stsci.edu/resources/software_hardware/pyfits</a>
WCSTools <a href="http://tdc-www.harvard.edu/software/wcstools/FUNTOOLS">http://tdc-www.harvard.edu/software/wcstools/</a>
<a href="http://tdc-www.harvard.edu/software/wcstools/FUNTOOLS">FUNTOOLS</a> <a href="http://hea-www.harvard.edu/RD/funtools/IDLASTRO">http://hea-www.harvard.edu/RD/funtools/</a>
<a href="http://hea-www.harvard.edu/RD/funtools/IDLASTRO">IDLASTRO</a> <a href="http://idlastro.gsfc.nasa.gov/fitsy">http://idlastro.gsfc.nasa.gov/</a>
<a href="http://idlastro.gsfc.nasa.gov/fitsy">fitsy</a> <a href="http://cfa-www.harvard.edu/~john/fitsy/IUEDAC">http://cfa-www.harvard.edu/~john/fitsy/</a>
<a href="http://cfa-www.harvard.edu/~john/fitsy/IUEDAC">IUEDAC</a> <a href="http://archive.stsci.edu/iue/iuedacfits.html">http://archive.stsci.edu/iue/iuedacfits.html</a>
Mathematica <a href="http://documents.wolfram.com/v5/Built-inFunctions/GraphicsAndSound/ImportAndExport/">http://documents.wolfram.com/v5/Built-inFunctions/</a>
<a href="http://documents.wolfram.com/v5/Built-inFunctions/GraphicsAndSound/ImportAndExport/">GraphicsAndSound/ImportAndExport/</a>
AdditionalInformation/Import.html
MatLab <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/fitsread.shtml?cmdname=fitsread">http://www.mathworks.com/access/helpdesk/help/techdoc/</a>
<a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/fitsread.shtml?cmdname=fitsread">ref/fitsread.shtml?cmdname=fitsread</a>
Current lists of more APIs can be found at
<a href="http://fits.gsfc.nasa.gov/fits_libraries.html">http://fits.gsfc.nasa.gov/fits_libraries.html</a>
List of applications that use FITS are found in the IANA
registrations of the media types.
<span class="h3"><a class="selflink" id="section-4.6" href="#section-4.6">4.6</a>. FITS File Conformance Testing</span>
FITS files can be tested for conformance to the Definition of FITS
rules [<a href="#ref-NOST" title=""Definition of the Flexible Image Transport System (FITS)"">NOST</a>, <a href="#ref-WCS1" title=""Representations of world coordinates in FITS"">WCS1</a>, <a href="#ref-WCS2" title=""Representations of celestial coordinates in FITS"">WCS2</a>] with an application named "fitsverify",
which is available at
<a href="http://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify/">http://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify/</a>
in the form of executable binary files for Solaris, Linux, and
Windows platforms, as well as in source code. Although "fitsverify"
has not been endorsed by the IAUFWG, users should be aware that the
designer of the program was the Secretary of the Technical Panel that
produced the published FITS standard [<a href="#ref-NOST" title=""Definition of the Flexible Image Transport System (FITS)"">NOST</a>].
<span class="h3"><a class="selflink" id="section-4.7" href="#section-4.7">4.7</a>. Archives That Distribute FITS Files</span>
As noted in <a href="#section-4.3">section 4.3</a> of this RFC, massive (multi-terabyte) data
archives that contain and/or distribute FITS files contribute to the
stability of the FITS standard. There are numerous publicly
available archives of FITS files derived from both space and ground-
based observations that span the entire range of the electromagnetic
spectrum from radio to gamma-ray wavelengths. The following are
examples of such archives, in no particular order:
<span class="grey">Allen & Wells Informational [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
Telescope(s) URLs for archive access
------------ ------------------------------------------------------
KPNO,CTIO,.. <a href="http://archive.noao.edu/nsa/VLT">http://archive.noao.edu/nsa/</a>
<a href="http://archive.noao.edu/nsa/VLT">VLT</a>,HST,.. <a href="http://archive.eso.org/Subaru">http://archive.eso.org/</a>
<a href="http://archive.eso.org/Subaru">Subaru</a> <a href="http://smoka.nao.ac.jp/SDSS">http://smoka.nao.ac.jp/</a>
<a href="http://smoka.nao.ac.jp/SDSS">SDSS</a> <a href="http://www.sdss.org/dr3/CFHT">http://www.sdss.org/dr3/</a>
<a href="http://www.sdss.org/dr3/CFHT">CFHT</a> <a href="http://cadcwww.dao.nrc.ca/cfht/cfht.html">http://cadcwww.dao.nrc.ca/cfht/cfht.html</a>
VLA,VLBA,GBT <a href="http://e2e.aoc.nrao.edu/archive/archive_describe.html">http://e2e.aoc.nrao.edu/archive/archive_describe.html</a>
HST,MAST <a href="http://archive.stsci.edu/HEASARC">http://archive.stsci.edu/</a>
<a href="http://archive.stsci.edu/HEASARC">HEASARC</a> <a href="http://heasarc.gsfc.nasa.gov/w3browse/Chandra">http://heasarc.gsfc.nasa.gov/w3browse/</a>
<a href="http://heasarc.gsfc.nasa.gov/w3browse/Chandra">Chandra</a> <a href="http://cxc.harvard.edu/cda/LaPalma">http://cxc.harvard.edu/cda/</a>
<a href="http://cxc.harvard.edu/cda/LaPalma">LaPalma</a> <a href="http://archive.ast.cam.ac.uk/ingarch/BIMA">http://archive.ast.cam.ac.uk/ingarch/</a>
<a href="http://archive.ast.cam.ac.uk/ingarch/BIMA">BIMA</a> <a href="http://bimaarch.ncsa.uiuc.edu/Keck-DEIMOS">http://bimaarch.ncsa.uiuc.edu/</a>
<a href="http://bimaarch.ncsa.uiuc.edu/Keck-DEIMOS">Keck-DEIMOS</a> <a href="http://archive.deep.ucolick.org/ComptonGRO">http://archive.deep.ucolick.org/</a>
<a href="http://archive.deep.ucolick.org/ComptonGRO">ComptonGRO</a> <a href="http://cossc.gsfc.nasa.gov/archive/index.html">http://cossc.gsfc.nasa.gov/archive/index.html</a>
Spitzer,.. <a href="http://www.ipac.caltech.edu/AAT">http://www.ipac.caltech.edu/</a>
<a href="http://www.ipac.caltech.edu/AAT">AAT</a> <a href="http://www.aao.gov.au/archive/HIPASS">http://www.aao.gov.au/archive/</a>
<a href="http://www.aao.gov.au/archive/HIPASS">HIPASS</a> <a href="http://www.atnf.csiro.au/research/multibeam/multibeam.html">http://www.atnf.csiro.au/research/multibeam/</a>
<a href="http://www.atnf.csiro.au/research/multibeam/multibeam.html">multibeam.html</a>
JCMT <a href="http://salish.dao.nrc.ca:8080/jcmt/intro.html">http://salish.dao.nrc.ca:8080/jcmt/intro.html</a>
COBE,WMAP <a href="http://lambda.gsfc.nasa.gov/EVN">http://lambda.gsfc.nasa.gov/</a>
<a href="http://lambda.gsfc.nasa.gov/EVN">EVN</a> <a href="http://www.jive.nl/archive/scripts/listarch.php">http://www.jive.nl/archive/scripts/listarch.php</a>
Gemini <a href="http://gemini.ast.cam.ac.uk/sciops/data/dataIndex.html">http://gemini.ast.cam.ac.uk/sciops/data/dataIndex.html</a>
XMM-Newton <a href="http://xmm.vilspa.esa.es/external/xmm_data_acc/xsa/">http://xmm.vilspa.esa.es/external/xmm_data_acc/xsa/</a>
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. IANA Considerations</span>
The general nature of the full FITS standard requires the use of the
media type "application/fits". Nevertheless, the principal intent
for a great many FITS files is to convey a single data array in the
PHDU, and such arrays are very often 2-dimensional images. Several
common image viewing applications already display single-HDU FITS
files, and the prototypes for virtual observatory projects specify
that data provided by web services be conveyed by the data array in
the PHDU. These uses justify the registration of a second media
type, namely "image/fits", for files which use the subset of the
standard described by the original FITS standard paper [<a href="#ref-FITS" title=""FITS: A Flexible Image Transport System"">FITS</a>].
We note that the media type "image/gif" [<a href="#ref-MIME2" title=""Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types"">MIME2</a>] admits raster images
that are three dimensional, because animated GIF images contain two
spatial dimensions and one temporal dimension. We note that the
media types "image/vnd.dwg" and "image/vnd.dxf" admit data that
include three-dimensional vectors and curves as well as objects
created by using constructive solid geometry. Following these
precedents for the "image" media type, we specify that "image/fits"
MAY be used to describe FITS PHDUs that have other than two
dimensions. We expect that most files described as "image/fits" will
have two-dimensional (NAXIS=2) PHDUs.
<span class="grey">Allen & Wells Informational [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Registration of application/fits</span>
To: ietf-types@iana.org
Subject: Registration of Standard MIME Media type application/fits
MIME media type name: application
MIME subtype name: fits
Required parameters: none
Optional parameters: none
Encoding considerations: binary
FITS files can be quite large. When transferred via HTTP it may be
efficient for the transaction to make use of content-coding or
transfer-coding values such as "gzip", "compress", or "deflate".
Security considerations:
FITS provides a means of transporting arrays and tables of data and
keyword/value pairs of metadata. The standard FITS keywords are
either mandatory or reserved. Mandatory keywords provide information
necessary for correct interpretation of the data; reserved keywords
merely provide standard bits of metadata. As such, the current
standard FITS keywords do not pose security risks.
A FITS file author may insert additional keywords with semantics that
are not described by the standard. Parties exchanging FITS files may
employ locally defined conventions that use various keywords and
their values to induce actions on the part of the recipient. There
are existing local conventions where such keywords are used to
request the reading of other files and/or URIs. There are other
local conventions where such keywords are used to modify the state of
a telescope and/or instrument. The security implications of local
conventions such as these SHOULD be analyzed by the parties employing
them.
Interoperability considerations:
FITS files have been successfully transported between wildly
different computers since 1979. The difficulty most likely to be
encountered by a FITS application is inability to acquire the
computational resources required by a very large FITS file.
<span class="grey">Allen & Wells Informational [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
Published specification:
The specification for this content type is published as a series of
papers in refereed astronomical journals:
Hanisch, R., et al., "Definition of the Flexible Image Transport
System (FITS)", Astronomy & Astrophysics, 376, p. 359, 2001.
Greisen, E. and M. Calabretta, "Representations of world coordinates
in FITS", Astronomy & Astrophysics, 395, p. 1061, 2002.
Calabretta, M. and E. Greisen, "Representations of celestial
coordinates in FITS", Astronomy & Astrophysics, 395, p. 1077, 2002.
Copies of these specifications can also be found via:
<a href="http://fits.gsfc.nasa.gov/">http://fits.gsfc.nasa.gov/</a>
<a href="http://archive.stsci.edu/fits/">http://archive.stsci.edu/fits/</a>
<a href="http://www.cv.nrao.edu/fits/">http://www.cv.nrao.edu/fits/</a>
<a href="http://heasarc.gsfc.nasa.gov/docs/heasarc/fits.html">http://heasarc.gsfc.nasa.gov/docs/heasarc/fits.html</a>
Applications that use this media type:
There are many astronomical image viewing and data reduction
applications including, but not limited to, the following list:
IRAF <a href="http://iraf.noao.edu/AIPS">http://iraf.noao.edu/</a>
<a href="http://iraf.noao.edu/AIPS">AIPS</a> <a href="http://www.aoc.nrao.edu/aips/">http://www.aoc.nrao.edu/aips/</a>
AIPS++ <a href="http://aips2.nrao.edu/MIDAS">http://aips2.nrao.edu/</a>
<a href="http://aips2.nrao.edu/MIDAS">MIDAS</a> <a href="http://www.eso.org/projects/esomidas/ds9">http://www.eso.org/projects/esomidas/</a>
<a href="http://www.eso.org/projects/esomidas/ds9">ds9</a> <a href="http://hea-www.harvard.edu/RD/ds9/fv">http://hea-www.harvard.edu/RD/ds9/</a>
<a href="http://hea-www.harvard.edu/RD/ds9/fv">fv</a> <a href="http://heasarc.gsfc.nasa.gov/ftools/fv/Aladin">http://heasarc.gsfc.nasa.gov/ftools/fv/</a>
<a href="http://heasarc.gsfc.nasa.gov/ftools/fv/Aladin">Aladin</a> <a href="http://aladin.u-strasbg.fr/Starlink">http://aladin.u-strasbg.fr/</a>
<a href="http://aladin.u-strasbg.fr/Starlink">Starlink</a> <a href="http://star-www.rl.ac.uk/">http://star-www.rl.ac.uk/</a>
Miriad <a href="http://bima.astro.umd.edu/miriad/STSDAS">http://bima.astro.umd.edu/miriad/</a>
<a href="http://bima.astro.umd.edu/miriad/STSDAS">STSDAS</a> <a href="http://www.stsci.edu/resources/software_hardware/stsdas">http://www.stsci.edu/resources/software_hardware/stsdas</a>
PROS <a href="http://hea-www.harvard.edu/PROS/pros.html">http://hea-www.harvard.edu/PROS/pros.html</a>
CIAO <a href="http://cxc.harvard.edu/ciao/XANADU">http://cxc.harvard.edu/ciao/</a>
<a href="http://cxc.harvard.edu/ciao/XANADU">XANADU</a> <a href="http://heasarc.gsfc.nasa.gov/docs/xanadu/xanadu.html">http://heasarc.gsfc.nasa.gov/docs/xanadu/xanadu.html</a>
HESSI <a href="http://hesperia.gsfc.nasa.gov/ssw/hessi/doc/FITSview">http://hesperia.gsfc.nasa.gov/ssw/hessi/doc/</a>
<a href="http://hesperia.gsfc.nasa.gov/ssw/hessi/doc/FITSview">FITSview</a> <a href="http://www.nrao.edu/software/fitsview/">http://www.nrao.edu/software/fitsview/</a>
XMM-SAS <a href="http://xmm.vilspa.esa.es/external/xmm_sw_cal/sas_frame.shtml">http://xmm.vilspa.esa.es/external/xmm_sw_cal/sas_frame.shtml</a>
At the present time many of these applications are not designed to
support use as viewers of "application/fits" files in association
with web browsers.
<span class="grey">Allen & Wells Informational [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
Additional information:
A FITS file described with the media type "application/fits" SHOULD
conform to the published standards for FITS files as determined by
convention and agreement within the international FITS community. No
other constraints are placed on the content of a file described as
"application/fits".
A FITS file described with the media type "application/fits" may have
an arbitrary number of conforming extension header and data units
(XHDUs) that follow its mandatory primary header and data unit
(PHDU). The XHDUs may be one of the standard types ("IMAGE",
"TABLE", and "BINTABLE") or any other type that satisfies the
"Requirements for Conforming Extensions" (section 4.4.1 of [<a href="#ref-NOST" title=""Definition of the Flexible Image Transport System (FITS)"">NOST</a>]).
The PHDU or any "IMAGE" XHDU may contain zero to 999 dimensions with
zero or more pixels along each dimension.
The PHDU may use the random groups convention, in which the dimension
of the first axis is zero and the keywords GROUPS, PCOUNT and GCOUNT
appear in the header. NAXIS1=0 and GROUPS=T is the signature of
random groups; see <a href="#section-7">section 7</a> of the Definition of FITS paper [<a href="#ref-NOST" title=""Definition of the Flexible Image Transport System (FITS)"">NOST</a>].
Recommendations for application writers:
An application intended to handle "application/fits" SHOULD be able
to provide a user with a manifest of all of the HDUs that are present
in the file and with all of the keyword/value pairs from each of the
HDUs.
An application intended to handle "application/fits" SHOULD be
prepared to encounter XHDUs that contain either ASCII or binary
tables, and to provide a user with access to their elements.
An application which can modify FITS files or retrieve FITS files
from an external service SHOULD be capable of writing such files to a
local storage medium.
Complete interpretation of the meaning and intended use of the data
in each of the HDUs typically requires the use of heuristics that
attempt to ascertain which local conventions were used by the author
of the FITS file.
As examples, files with media type "application/fits" might contain
any of the following contents:
- An empty PHDU (containing zero data elements) followed by a table
HDU that contains a catalog of celestial objects.
<span class="grey">Allen & Wells Informational [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
- An empty PHDU followed by a table HDU that encodes a series of
time-tagged photon events from an exposure using an X-ray detector.
- An empty PHDU followed by a series of IMAGE HDUs containing data
from an exposure taken by a mosaic of CCD detectors.
- An empty PHDU followed by a series of table HDUs that contain a
snapshot of the state of a relational database.
- A PHDU containing a single image along with keyword/value pairs of
metadata.
- A PHDU with NAXIS1=0 and GROUPS=T followed by random groups data
records of complex fringe visibilities
Magic number(s): "SIMPLE = T"
Jeff Uphoff of the National Radio Astronomy Observatory (NRAO) has
contributed database entries for the magic number file which is used
by the Unix "file" command. Magic number files with these entries
are distributed with a variety of Unix-like operating systems. In
addition to recognizing a FITS file using the string given above, the
Uphoff entries also recognize the data type of the pixels in the
PHDU.
File extension(s): fits
This file extension SHOULD NOT be interpreted as a prescription.
The FITS standard originated in the era when files were stored and
exchanged via magnetic tape; it does not prescribe any nomenclature
for files on disk. Various sites within the FITS community have
long-established practices where files are presumed to be FITS by
context. File extensions used at such sites commonly indicate
content of the file instead of the data format.
In the absence of other information it is reasonably safe to presume
that a file name ending in ".fits" is intended to be a FITS file.
Nevertheless, there are other commonly used extensions; e.g., ".fit",
".fts", and many others not suitable for listing in a media type
registration.
Intended usage: Common
Persons to contact for further information:
"Steve Allen" <sla@ucolick.org>
"Don Wells" <dwells@nrao.edu>
<span class="grey">Allen & Wells Informational [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
Author/Change controller:
"Steve Allen" <sla@ucolick.org>
The IAU FITS Working Group may authorize changes to this document.
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Registration of image/fits</span>
To: ietf-types@iana.org
Subject: Registration of Standard MIME Media type image/fits
MIME media type name: image
MIME subtype name: fits
Required parameters: none
Optional parameters: none
Encoding considerations: binary
FITS files can be quite large. When transferred via HTTP it may be
efficient for the transaction to make use of content-coding or
transfer-coding values such as "gzip", "compress", or "deflate".
Security considerations:
FITS provides a means of transporting arrays and tables of data and
keyword/value pairs of metadata. The standard FITS keywords are
either mandatory or reserved. Mandatory keywords provide information
necessary for correct interpretation of the data; reserved keywords
merely provide standard bits of metadata. As such, the current
standard FITS keywords do not pose security risks.
A FITS file author may insert additional keywords with semantics that
are not described by the standard. Parties exchanging FITS files may
employ locally defined conventions that use various keywords and
their values to induce actions on the part of the recipient. There
are existing local conventions where such keywords are used to
request the reading of other files and/or URIs. There are other
local conventions where such keywords are used to modify the state of
a telescope and/or instrument. The security implications of local
conventions such as these SHOULD be analyzed by the parties employing
them.
<span class="grey">Allen & Wells Informational [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
Interoperability considerations:
FITS files have been successfully transported between wildly
different computers since 1979. The difficulty most likely to be
encountered by a FITS application is inability to acquire the
computational resources required by a very large FITS file.
Published specification:
The specification for this content type is published as a series of
papers in refereed astronomical journals:
Hanisch, R., et al., "Definition of the Flexible Image Transport
System (FITS)", Astronomy & Astrophysics, 376, p. 359, 2001.
Greisen, E. and M. Calabretta, "Representations of world
coordinates in FITS", Astronomy & Astrophysics, 395, p. 1061, 2002.
Calabretta, M. and E. Greisen, "Representations of celestial
coordinates in FITS", Astronomy & Astrophysics, 395, p. 1077, 2002.
Copies of these specifications can also be found via:
<a href="http://fits.gsfc.nasa.gov/">http://fits.gsfc.nasa.gov/</a>
<a href="http://archive.stsci.edu/fits/">http://archive.stsci.edu/fits/</a>
<a href="http://www.cv.nrao.edu/fits/">http://www.cv.nrao.edu/fits/</a>
<a href="http://heasarc.gsfc.nasa.gov/docs/heasarc/fits.html">http://heasarc.gsfc.nasa.gov/docs/heasarc/fits.html</a>
Applications that use this media type:
There are many astronomical image viewing and data reduction
applications including, but not limited to, the following list:
IRAF <a href="http://iraf.noao.edu/AIPS">http://iraf.noao.edu/</a>
<a href="http://iraf.noao.edu/AIPS">AIPS</a> <a href="http://www.aoc.nrao.edu/aips/">http://www.aoc.nrao.edu/aips/</a>
AIPS++ <a href="http://aips2.nrao.edu/MIDAS">http://aips2.nrao.edu/</a>
<a href="http://aips2.nrao.edu/MIDAS">MIDAS</a> <a href="http://www.eso.org/projects/esomidas/ds9">http://www.eso.org/projects/esomidas/</a>
<a href="http://www.eso.org/projects/esomidas/ds9">ds9</a> <a href="http://hea-www.harvard.edu/RD/ds9/fv">http://hea-www.harvard.edu/RD/ds9/</a>
<a href="http://hea-www.harvard.edu/RD/ds9/fv">fv</a> <a href="http://heasarc.gsfc.nasa.gov/ftools/fv/Aladin">http://heasarc.gsfc.nasa.gov/ftools/fv/</a>
<a href="http://heasarc.gsfc.nasa.gov/ftools/fv/Aladin">Aladin</a> <a href="http://aladin.u-strasbg.fr/Starlink">http://aladin.u-strasbg.fr/</a>
<a href="http://aladin.u-strasbg.fr/Starlink">Starlink</a> <a href="http://star-www.rl.ac.uk/">http://star-www.rl.ac.uk/</a>
Miriad <a href="http://bima.astro.umd.edu/miriad/STSDAS">http://bima.astro.umd.edu/miriad/</a>
<a href="http://bima.astro.umd.edu/miriad/STSDAS">STSDAS</a> <a href="http://www.stsci.edu/resources/software_hardware/stsdas">http://www.stsci.edu/resources/software_hardware/stsdas</a>
PROS <a href="http://hea-www.harvard.edu/PROS/pros.html">http://hea-www.harvard.edu/PROS/pros.html</a>
CIAO <a href="http://cxc.harvard.edu/ciao/XANADU">http://cxc.harvard.edu/ciao/</a>
<a href="http://cxc.harvard.edu/ciao/XANADU">XANADU</a> <a href="http://heasarc.gsfc.nasa.gov/docs/xanadu/xanadu.html">http://heasarc.gsfc.nasa.gov/docs/xanadu/xanadu.html</a>
<span class="grey">Allen & Wells Informational [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
HESSI <a href="http://hesperia.gsfc.nasa.gov/ssw/hessi/doc/FITSview">http://hesperia.gsfc.nasa.gov/ssw/hessi/doc/</a>
<a href="http://hesperia.gsfc.nasa.gov/ssw/hessi/doc/FITSview">FITSview</a> <a href="http://www.nrao.edu/software/fitsview/">http://www.nrao.edu/software/fitsview/</a>
XMM-SAS <a href="http://xmm.vilspa.esa.es/external/xmm_sw_cal/sas_frame.shtml">http://xmm.vilspa.esa.es/external/xmm_sw_cal/sas_frame.shtml</a>
Non-astronomical FITS image display applications include:
netpbm <a href="http://netpbm.sourceforge.net/gimp">http://netpbm.sourceforge.net/</a>
<a href="http://netpbm.sourceforge.net/gimp">gimp</a> <a href="http://www.gimp.org/IDL">http://www.gimp.org/</a>
<a href="http://www.gimp.org/IDL">IDL</a> <a href="http://www.rsinc.com/ImageMagick">http://www.rsinc.com/</a>
<a href="http://www.rsinc.com/ImageMagick">ImageMagick</a> <a href="http://www.imagemagick.com/Mathematica">http://www.imagemagick.com/</a>
<a href="http://www.imagemagick.com/Mathematica">Mathematica</a> <a href="http://www.wolfram.com/MatLab">http://www.wolfram.com/</a>
<a href="http://www.wolfram.com/MatLab">MatLab</a> <a href="http://www.mathworks.com/xv">http://www.mathworks.com/</a>
<a href="http://www.mathworks.com/xv">xv</a> <a href="http://www.trilon.com/xv/xv.html">http://www.trilon.com/xv/xv.html</a>
There are also two FITS plug-ins for Adobe Photoshop
(<a href="http://www.adobe.com/products/photoshop/">http://www.adobe.com/products/photoshop/</a>), available at
<a href="http://astroshed.com/fitsplug/fitsplug.htm">http://astroshed.com/fitsplug/fitsplug.htm</a> and
<a href="http://www.spacetelescope.org/projects/fits_liberator/">http://www.spacetelescope.org/projects/fits_liberator/</a>
At the present time many of the applications listed above are not
designed to support use as viewers of "image/fits" files in
association with web browsers.
Additional information:
A FITS file described with the media type "image/fits" SHOULD have a
PHDU with positive integer values for the NAXIS and NAXISn keywords,
and hence SHOULD contain at least one pixel. Files with 4 or more
non-degenerate axes (NAXISn>1) SHOULD be described as
"application/fits", not as "image/fits". (In rare cases it may be
appropriate to describe a NULL image -- a dataless container for FITS
keywords, with NAXIS=0 or NAXISn=0 -- or an image with 4+ non-
degenerate axes as "image/fits" but this usage is discouraged because
such files may confuse simple image viewer applications.)
FITS files declared as "image/fits" MAY also have one or more
conforming XHDUs following their PHDUs. These extension HDUs MAY
contain standard, non-linear, world coordinate system (WCS)
information in the form of tables or images. The extension HDUs MAY
also contain other, non-standard metadata pertaining to the image in
the PHDU in the forms of keywords and tables.
A FITS file described with the media type "image/fits" SHOULD be
principally intended to communicate the single data array in the
PHDU. This means that "image/fits" SHOULD NOT be applied to FITS
files containing MEF (multi-exposure-frame) mosaic images. Also,
random groups files MUST be described as "application/fits" and not
as "image/fits".
<span class="grey">Allen & Wells Informational [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
A FITS file described with the media type "image/fits" is also valid
as a file of media type "application/fits". The choice of
classification depends on the context and intended usage.
Recommendations for application writers:
An application that is intended to handle "image/fits" SHOULD be able
to provide a user with a manifest of all of the HDUs that are present
in the file and with all of the keyword/value pairs from each of the
HDUs. An application writer MAY choose to ignore HDUs beyond the
PHDU, but even in this case the application SHOULD be able to present
the user with the keyword/value pairs from the PHDU.
Note that an application intended to render "image/fits" for viewing
by a user has significantly more responsibility than an application
intended to handle, e.g., "image/tiff" or "image/gif". FITS data
arrays contain elements which typically represent the values of a
physical quantity at some coordinate location. Consequently they
need not contain any pixel rendering information in the form of
transfer functions, and there is no mechanism for color look-up
tables. An application SHOULD provide this functionality, either
statically using a more or less sophisticated algorithm, or
interactively allowing a user various degrees of choice.
Furthermore, the elements in a FITS data array may be integers or
floating-point numbers. The dynamic range of the data array values
may exceed that of the display medium and the eye, and their
distribution may be highly nonuniform. Logarithmic, square-root, and
quadratic transfer functions along with histogram equalization
techniques have proved helpful for rendering FITS data arrays. Some
elements of the array may have values which indicate that their data
are undefined or invalid; these should be rendered distinctly. Via
WCS Paper I [<a href="#ref-WCS1" title=""Representations of world coordinates in FITS"">WCS1</a>] the standard permits "CTYPEnnn = 'COMPLEX'" to
assert that a data array contains complex numbers (future revisions
might admit other elements such as quaternions or general tensors).
Three-dimensional data arrays (NAXIS=3 with NAXIS1, NAXIS2 and NAXIS3
> 1) are of special interest. Applications intended to handle
"image/fits" MAY default to displaying the first 2D plane of such an
image cube, or they MAY default to presenting such an image in a
fashion akin to that used for an animated GIF, or they MAY present
the data cube as a mosaic of "thumbnail" images. Even in the absence
of WCS indication of a temporal axis the time-lapse movie-looping
display technique can be effective, and application writers SHOULD
consider offering it for all three-dimensional arrays.
An "image/fits" PHDU with NAXIS=1 is describing a one-dimensional
entity such as a spectrum or a time series. Applications intended to
<span class="grey">Allen & Wells Informational [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
handle "image/fits" MAY default to displaying such an image as a
graphical plot rather than as a two-dimensional picture with a single
row.
An application that cannot handle an image with dimensionality other
than 2 SHOULD gracefully indicate its limitations to its users when
it encounters NAXIS=1 or NAXIS=3 cases, while still providing access
to the keyword/value pairs.
FITS files with degenerate axes (i.e., one or more NAXISn=1) MAY be
described as "image/fits", but the first axes SHOULD be non-
degenerate (i.e., the degenerate axes SHOULD be the highest
dimensions). An algorithm designed to render only two-dimensional
images will be capable of displaying such an NAXIS=3 or NAXIS=4 FITS
array that has one or two of the axes consisting of a single pixel,
and an application writer SHOULD consider coding this capability into
the application. Writers of new applications which generate FITS
files intended to be described as "image/fits" SHOULD consider using
the WCSAXES keyword [<a href="#ref-WCS1" title=""Representations of world coordinates in FITS"">WCS1</a>] to declare the dimensionality of such
degenerate axes, so that NAXIS can be used to convey the number of
non-degenerate axes.
Magic number(s): "SIMPLE = T"
Jeff Uphoff of the National Radio Astronomy Observatory (NRAO) has
contributed database entries for the magic number file which is used
by the Unix "file" command. Magic number files with these entries
are distributed with a variety of Unix-like operating systems. In
addition to recognizing a FITS file using the string given above, the
Uphoff entries also recognize the data type of the pixels in the
PHDU.
File extension(s): fits
This file extension SHOULD NOT be interpreted as a prescription.
The FITS standard originated in the era when files were stored and
exchanged via magnetic tape; it does not prescribe any nomenclature
for files on disk. Various sites within the FITS community have
long-established practices where files are presumed to be FITS by
context. File extensions used at such sites commonly indicate
content of the file instead of the data format.
In the absence of other information it is reasonably safe to presume
that a file name ending in ".fits" is intended to be a FITS file.
Nevertheless, there are other commonly used extensions; e.g., ".fit",
".fts", and many others not suitable for listing in a media type
registration.
<span class="grey">Allen & Wells Informational [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
Intended usage: Common
Persons to contact for further information:
"Steve Allen" <sla@ucolick.org>
"Don Wells" <dwells@nrao.edu>
Author/Change controller:
"Steve Allen" <sla@ucolick.org>
The IAU FITS Working Group may authorize changes to this document.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. References</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Normative References</span>
[<a id="ref-Require">Require</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-MIME1">MIME1</a>] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part One: Format of Internet Message
Bodies", <a href="./rfc2045">RFC 2045</a>, November 1996.
[<a id="ref-MIME2">MIME2</a>] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part Two: Media Types", <a href="./rfc2046">RFC 2046</a>,
November 1996.
[<a id="ref-MIME4">MIME4</a>] Freed, N., Klensin, J., and J. Postel, "Multipurpose
Internet Mail Extensions (MIME) Part Four: Registration
Procedures", <a href="https://www.rfc-editor.org/bcp/bcp13">BCP 13</a>, <a href="./rfc2048">RFC 2048</a>, November 1996.
[<a id="ref-HTTP">HTTP</a>] Fielding, R., Gettys, J., Mogul, J., Frystyk, H.,
Masinter, L., Leach, P., and T. Berners-Lee, "Hypertext
Transfer Protocol -- HTTP/1.1", <a href="./rfc2616">RFC 2616</a>, June 1999.
[<a id="ref-NOST">NOST</a>] Hanisch, R., et al., "Definition of the Flexible Image
Transport System (FITS)", Astronomy & Astrophysics, 376,
p. 359, 2001.
[<a id="ref-WCS1">WCS1</a>] Greisen, E. and M. Calabretta, "Representations of world
coordinates in FITS", Astronomy & Astrophysics, 395, p.
1061, 2002.
[<a id="ref-WCS2">WCS2</a>] Calabretta, M. and E. Greisen, "Representations of
celestial coordinates in FITS", Astronomy & Astrophysics,
395, p. 1077, 2002.
<span class="grey">Allen & Wells Informational [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Informative References</span>
[<a id="ref-FITS">FITS</a>] Wells, D., et al., "FITS: A Flexible Image Transport
System", Astronomy & Astrophysics Supplement, 44, p. 363,
1981.
[<a id="ref-GROUPS">GROUPS</a>] Greisen, E. and R. Harten, "An extension of FITS for
groups of small arrays of data", Astronomy & Astrophysics
Supplement, 44, p. 371, 1981.
[<a id="ref-XTENSION">XTENSION</a>] Grosbol, P., et al., "Generalized extensions and blocking
factors for FITS", Astronomy & Astrophysics Supplement,
73, p. 359, 1988.
[<a id="ref-IAUFWG">IAUFWG</a>] McNally, D., ed., "Transactions of the IAU, Vol. XXB
1988, Proceedings of the Twentieth General Assembly
Baltimore 1988", Kluwer Academic, p. 52 (Resolution B2),
1988.
[<a id="ref-TABLE">TABLE</a>] Harten, R., et al., "The FITS tables extension",
Astronomy & Astrophysics Supplement, 73, p. 365, 1988.
[<a id="ref-IMAGE">IMAGE</a>] Ponz, J., et al., "The FITS image extension", Astronomy &
Astrophysics Supplement, 105, p. 53, 1994.
[<a id="ref-BINTABLE">BINTABLE</a>] Cotton, W., et al., "Binary table extension to FITS",
Astronomy & Astrophysics Supplement, 113, p. 159, 1995.
[<a id="ref-Remark">Remark</a>] Greisen, E., "FITS: A remarkable achievement in
information exchange" in "Information Handling in
Astronomy -- Historical Vistas", A. Heck, ed., Kluwer
Academic, p. 71, 2003.
[<a id="ref-IVOA">IVOA</a>] The International Virtual Observatory Alliance,
<a href="http://www.ivoa.net/">http://www.ivoa.net/</a>
[<a id="ref-NVO">NVO</a>] The US National Virtual Observatory, <a href="http://www.us-vo.org/">http://www.us-</a>
<a href="http://www.us-vo.org/">vo.org/</a>
[<a id="ref-AstroGrid">AstroGrid</a>] The UK AstroGrid, <a href="http://www.astrogrid.org/">http://www.astrogrid.org/</a>
[<a id="ref-AVO">AVO</a>] The European Astrophysical Virtual Observatory,
<a href="http://www.euro-vo.org/">http://www.euro-vo.org/</a>
[<a id="ref-ASU">ASU</a>] Albrecht, M., et al., "Astronomical Server URL",
<a href="http://vizier.u-strasbg.fr/doc/asu.html">http://vizier.u-strasbg.fr/doc/asu.html</a>, 1996.
<span class="grey">Allen & Wells Informational [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
[<a id="ref-SIAP">SIAP</a>] Tody, D., et al., "Simple Image Access Prototype
Specification", <a href="http://www.us-vo.org/pubs/">http://www.us-vo.org/pubs/</a>, 2002.
[<a id="ref-TIFF">TIFF</a>] Adobe Systems Incorporated, "TIFF Revision 6.0",
<a href="http://partners.adobe.com/asn/developer/pdfs/tn/TIFF6.pdf">http://partners.adobe.com/asn/developer/pdfs/tn/TIFF6.pdf</a>
1992.
[<a id="ref-GeoTIFF">GeoTIFF</a>] Ritter, N. and M. Ruth, "GeoTIFF Format Specification",
<a href="http://www.remotesensing.org/geotiff/geotiff.html">http://www.remotesensing.org/geotiff/geotiff.html</a>, 2000.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Security Considerations</span>
The security considerations of interchanging FITS files are discussed
above within the text of the IANA registration for each media type.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Contributors</span>
Several individuals have made significant contributions to the
content and clarity of this text:
- Francois Ochsenbein (Observatoire Astronomique de Strasbourg)
- Clive Davenhall (Institute for Astronomy of the Royal
Observatory Edinburgh)
- Tom McGlynn (Laboratory for High Energy Astrophysics of
the NASA Goddard Space Flight Center)
- Lucio Chiappetti (Milan section of the Italian Istituto di
Astrofisica Spaziale e Fisica Cosmica)
- William Pence (NASA High Energy Astrophysics Science Archive
Research Center)
- Arnold Rots (High Energy Astrophysics Division of the
Smithsonian Astrophysical Observatory)
- Doug Tody (National Radio Astronomy Observatory)
- Bob Hanisch (Space Telescope Science Institute)
- Mark Calabretta (Australia Telescope National Facility)
<span class="grey">Allen & Wells Informational [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Acknowledgements</span>
This document originated when William Joye of the Research and
Development Group at the Smithsonian Astrophysical Observatory High
Energy Astrophysics Division discovered many experimental and
unofficial MIME media types being used by various agencies.
Jeff Uphoff of the National Radio Astronomy Observatory (NRAO)
contributed the FITS entries for the magic number file that permits
the Unix-like "file" command on many systems to identify a FITS file.
Nelson Zarate verified that the fgread and fgwrite programs are able
to store hierarchical directories containing files with arbitrary
MIME media types within a HDU of a FITS file. The fgread and fgwrite
programs are part of the FITSUTIL IRAF external package (version
dated September 1999) written by N. Zarate, D. Tody, and R. Seaman at
National Optical Astronomy Observatory (NOAO).
Authors' Addresses
Steven L. Allen
UCO/Lick Observatory
University of California
Santa Cruz, CA 95064 USA
Phone: +1 831 459 3046
EMail: sla@ucolick.org
Donald C. Wells
National Radio Astronomy Observatory
520 Edgemont Road
Charlottesville, Virginia 22903-2475 USA
Phone: +1 434 296 0277
EMail: dwells@nrao.edu
<span class="grey">Allen & Wells Informational [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc4047">RFC 4047</a> MIME Sub-type Registrations for FITS April 2005</span>
Full Copyright Statement
Copyright (C) The Internet Society (2005).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at ietf-
ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Allen & Wells Informational [Page 23]
</pre>
|