🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.misc
Article #2457

Re: NASA image viewer

#2457
From: Robert F. Cahalan
Date: Mon, 31 Aug 1992 21:10
39 lines
2630 bytes
In article <999@esosun.UUCP> zeke@esosun.UUCP (James Dehnert) writes:
> 
>   On pioneer.unm.edu there are a number of NASA images from the voyager
> space crafts.  These images are in a compressed raw format that dosen't
> seem to be readable by any of the software on my system.  Does anyone
> know of a program that can uncompress and display these images?
>   There is source code on the system to do this, but the C code seems to
> be writen for PC's, and I am not what one would call a "really good"
> programer.  I'll take a crack at porting the code if nothing exists, but
> I don't know if I'll ever have the time, and my skill level may not be
> up to par.
> 
>   So, is there some existing software to view these images?
> 
>   Zeke

I'm not into Voyager data, but if they're like the shuttle photos, then  
they are in band-sequential format with a 512 byte header, with
512 x 512 bytes of red, 512 x 512 bytes of green, and 512 x 512 bytes
of blue.  Use HexEditor (from Sonata) to examine the first 512 bytes.   
That should tell you the number of pixels-per-line (512) and the number of  
lines-per-band (512) and the number of bands (3).  If it makes sense, then  
you can use the unix utility "dd" to strip out the individual bands into  
three files (do a "man dd"), and then use my NeXT utility "RGBtoTIFF" (at  
cs.orst.edu) to put them into a compressed TIFF file.  Then use Icon, or  
your favorite TIFF reader.  

You might try running this little script on your file (see the Help screen  
of RGBtoTIFF):
dd if=$1.dat of=$1.r skip=1 count=$2 bs=$2
dd if=$1.dat of=$1.g skip=$2+1 count=$2 bs=$2
dd if=$1.dat of=$1.b skip=2*$2+1 count=$2 bs=$2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.Dr. Robert F. Cahalan (Bob)...#..Laboratory for Atmospheres......
.cahalan@clouds.gsfc.nasa.gov..#..NASA-Goddard Space Flight Center
.*** NeXTMail accepted ***.....#..Greenbelt, MD 20771.............
.FAX: (301) 286-1627...........#..voice: (301) 286-4276...........
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID: <1992Aug31.211004.379@nsisrv.gsfc.nasa.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!nsisrv!usenet
References: <999@esosun.UUCP>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!nsisrv!usenet
From: cahalan@clouds.gsfc.nasa.gov (Robert F. Cahalan)
Subject: Re: NASA image viewer
Message-ID: <1992Aug31.211004.379@nsisrv.gsfc.nasa.gov>
Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
Nntp-Posting-Host: clouds.gsfc.nasa.gov
Organization: Goddard Space Flight Center
References: <999@esosun.UUCP>
Date: Mon, 31 Aug 1992 21:10:04 GMT
Lines: 39