home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / misc / 19167 < prev    next >
Encoding:
Text File  |  1992-08-31  |  2.5 KB  |  52 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!nsisrv!usenet
  3. From: cahalan@clouds.gsfc.nasa.gov (Robert F. Cahalan)
  4. Subject: Re: NASA image viewer
  5. Message-ID: <1992Aug31.211004.379@nsisrv.gsfc.nasa.gov>
  6. Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
  7. Nntp-Posting-Host: clouds.gsfc.nasa.gov
  8. Organization: Goddard Space Flight Center
  9. References: <999@esosun.UUCP>
  10. Date: Mon, 31 Aug 1992 21:10:04 GMT
  11. Lines: 39
  12.  
  13. In article <999@esosun.UUCP> zeke@esosun.UUCP (James Dehnert) writes:
  14. >   On pioneer.unm.edu there are a number of NASA images from the voyager
  15. > space crafts.  These images are in a compressed raw format that dosen't
  16. > seem to be readable by any of the software on my system.  Does anyone
  17. > know of a program that can uncompress and display these images?
  18. >   There is source code on the system to do this, but the C code seems to
  19. > be writen for PC's, and I am not what one would call a "really good"
  20. > programer.  I'll take a crack at porting the code if nothing exists, but
  21. > I don't know if I'll ever have the time, and my skill level may not be
  22. > up to par.
  23. >   So, is there some existing software to view these images?
  24. >   Zeke
  25.  
  26. I'm not into Voyager data, but if they're like the shuttle photos, then  
  27. they are in band-sequential format with a 512 byte header, with
  28. 512 x 512 bytes of red, 512 x 512 bytes of green, and 512 x 512 bytes
  29. of blue.  Use HexEditor (from Sonata) to examine the first 512 bytes.   
  30. That should tell you the number of pixels-per-line (512) and the number of  
  31. lines-per-band (512) and the number of bands (3).  If it makes sense, then  
  32. you can use the unix utility "dd" to strip out the individual bands into  
  33. three files (do a "man dd"), and then use my NeXT utility "RGBtoTIFF" (at  
  34. cs.orst.edu) to put them into a compressed TIFF file.  Then use Icon, or  
  35. your favorite TIFF reader.  
  36.  
  37. You might try running this little script on your file (see the Help screen  
  38. of RGBtoTIFF):
  39. dd if=$1.dat of=$1.r skip=1 count=$2 bs=$2
  40. dd if=$1.dat of=$1.g skip=$2+1 count=$2 bs=$2
  41. dd if=$1.dat of=$1.b skip=2*$2+1 count=$2 bs=$2
  42.  
  43. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  44. .Dr. Robert F. Cahalan (Bob)...#..Laboratory for Atmospheres......
  45. .cahalan@clouds.gsfc.nasa.gov..#..NASA-Goddard Space Flight Center
  46. .*** NeXTMail accepted ***.....#..Greenbelt, MD 20771.............
  47. .FAX: (301) 286-1627...........#..voice: (301) 286-4276...........
  48. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  49.