home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / FAQSYS18.ZIP / FAQS.DAT / PDS_FORM.TXT < prev    next >
Internet Message Format  |  1995-01-28  |  3KB

  1. Date:    Tue, 17 Jan 1995 10:49:13 -0800 (PST)
  2. From: PDS_OPERATOR@JPLPDS.JPL.NASA.GOV
  3. Subject: RE: PDS specification
  4.  
  5. Overview of PDS Image Format
  6. M. D. Martin, PDS Project Engineer
  7.  
  8. The PDS (originally Planetary Data System, now Portable Data Specification)
  9. format is actually more of a labelling architecture than a specific image
  10. storage format.  It supports the description of many kinds of data objects
  11. (table, series, multispectral cube, etc.).  It is intended to provide a
  12. computer readable AND human readable description of the contents and format
  13. of a file in simple keyword=value format.
  14.  
  15. Many varieties of images can be described with the PDS label.  The key
  16. parameters are given in the examples, Table 1 and 2.  The ASCII labels can be
  17. attached at the beginning of the data file or detached in a separate file
  18. with a pointer to the image file.
  19.  
  20. TABLE 1.  Example of an attached label.
  21.  
  22. PDS_VERSION_ID = PDS2
  23. RECORD_FORMAT  = FIXED_LENGTH
  24. RECORD_BYTES   = 512
  25. RECORDS        = 514
  26. ^IMAGE         = 3 /* indicating that the image starts */
  27.                    /* at record 3 */
  28. OBJECT         = IMAGE
  29.  LINES          = 512
  30.  LINE_SAMPLES   = 512
  31.  SAMPLE_BYTES   = 8
  32.  SAMPLE_TYPE    = UNSIGNED_INTEGER
  33. END_OBJECT     = IMAGE
  34. END
  35. /* blank PADDING out to 1024 bytes */
  36. at byte 1025 the first line of the image begins.
  37.  
  38.  
  39. TABLE 2.  Example of detached label.
  40.  
  41. PDS_VERSION_ID = PDS2
  42. RECORD_FORMAT  = FIXED_LENGTH
  43. RECORD_BYTES   = 512
  44. RECORDS        = 512
  45. ^IMAGE         = "image.dat" /* indicating that the image */
  46.                              /* is contained in the file  */
  47.                              /* image.dat */
  48. OBJECT         = IMAGE
  49.  LINES          = 512
  50.  LINE_SAMPLES   = 512
  51.  SAMPLE_BYTES   = 8
  52.  SAMPLE_TYPE    = UNSIGNED_INTEGER
  53. END_OBJECT     = IMAGE
  54. END
  55. /* blank PADDING out to 1024 bytes */
  56. at byte 1025 the first line of the image begins.
  57.  
  58. Compression.
  59.  
  60. Most images from planetary missions are gray scale 8-bit images and take on a
  61. narrow range of values in any given file.  A simple compression algorithm can
  62. achieve 3 or 4 to 1 compression ratio.  The PDS chose to use a
  63. Huffman-First-Difference compression algorithm on all its Viking and Voyager
  64. Imaging CD-ROMs.  This algorithm first goes through each line and computes
  65. the pixel differences for each pixel.
  66. This leaves most of the pixels in a line with values near zero, since nearby
  67. pixels tend to have similar values.  A constant is added to eliminate
  68. negative values.  After this step is performed on all lines the entire image
  69. is encoded using Huffman coding.  The resulting encoding histogram is stored
  70. in the file with the image, which means there is a fixed overhead of about 2
  71. kilobytes for this type of compression.
  72.  
  73. Recommendations.
  74.  
  75. Further information about the PDS format can be found on-line at
  76. http://stardust.jpl.nasa.gov in the PDS standards documents and PDS data
  77. dictionary and PDS label toolbox.  The PDS toolbox is also available via
  78. an anonymous ftp account on starhawk.jpl.nasa.gov
  79.  
  80. Users who are looking for an alternative format to Compuserve GIF for general
  81. purpose image storage and distribution are advised to use TIFF format not the
  82. PDS format. The PDS image specification does not include many of the
  83. parameters which are common to images used in desktop publishing.
  84.  
  85.  
  86.  
  87.