Arch/Cmprss

Arch/Cmprss details

The latest version of the archive script for the Picker Odyssey computers introduces compatibility with the PRISM workbench through a graphical front end written by Wes Wooten, St. Agnes Medical Center, Fresno CA.

Arch script details

The script itself is quite simple in principle. 4 flags are accepted which determine whether to compress or uncompress, and what is to be compressed. A short help screen is available.

Basically, the script takes a list of directories or files from the command line and compresses the files. Compatibility of the compressed files with the clinical index utilities and the workbench is achieved by using dd(1) to extract the IIB header into a separate file and appending the compressed file to the header. The string 'arch-compressed' is placed between the header and the compressed file to indicate that the file has been compressed. The script looks for this string before attempting to uncompress the file.

If directories are to be compressed or uncompressed, the script will process all files beginning with R (raw data), T (transverse recons), O (oblique recons) and L (lightbox images) found in the directory.

The script also implements compression blocking on certain disks. The user may want to block compression on the hard disk to avoid the possibility of accidentally compressing a patient file during acquisition.

Arch front end

The arch front end, cmprss, was written by Wes Wooten using imager.c (a demo program on Picker's Software Developer's Kit) as a framework.

The front end itself is merely a wrapper program which takes the list of files currently on the workbench and combines them all into a long string which is passed to the arch script via the spawnv() routine. The files are compressed or uncompressed depending on which button is pushed. The apropriate arch flags are appended automatically.

This is what the buttons look like on an Odyssey VP (BL6) system
BL6 buttons
Pretty spiffy looking aren't they :)
And here are the Titan (BL5) buttons
BL5 buttons
Ugly, but functional.

Known bugs

If you find any problems, or if you have any suggestions on improving this stuff, please send mail to me or wooten@medisun.UCSFresno.EDU (preferably to both of us).

To do

File listing

Here are the files.

These files and pre-compiled binaries can be obtained via anonymous FTP from raddi.uah.ualberta.ca or from the list below. You can also grab it from the Picker Nuclear User's Group Info Droid by sending the message help to it and following the instructions it gives you.

Technical support is available from me or Wes Wooten.

----------

History of cmprss
Eugene Mah's home page
U of A Radiology home page


Eugene Mah eugene@raddi.uah.ualberta.ca
Last modified: Tue Feb 20 19:36:12 MST 1996