MAGSTRU is a tape utility and does not actually read any data from tape. It is useful in getting a quick overview of the structure of an unknown tape on systems where there is no operating system utility available for this action.
Name Prompt Count Type REPORT Report mode: TERM/OFF/filename 1-64 Char
EASI>REPORT="filename"The following names have special meaning
EASI>REPORT="TERM" | generates reports on your terminal
EASI>REPORT="DISK" | generates reports on file "IMPRPT.LST"
EASI>REPORT="OFF" | usually cancels report generation, but
| MAGSTRU forces REPORT to terminal output
The most important use of MAGSTRU is in attempting to read unknown and unsupported tape formats. When used in conjunction with PACE programs MVB and MIB, as well as some common sense and imagination, image data can usually be read off tape.
Other useful operating system level utilities which can help are:
UNIX: dd, od, mt, tcopy (unix commands) VAX VMS: dump (VMS utility)Check the on-line help on your system or the documentation for more information on these commands.
EASI> REPORT="TERM"
EASI> RUN MAGSTRU
5 records of 80 bytes
*** EOF ***
64 records of 16384 bytes
*** EOF ***
4 records of 80 bytes
*** EOF ***
4 records of 80 bytes
*** EOF ***
64 records of 16384 bytes
*** EOF ***
4 records of 80 bytes
*** EOF ***
4 records of 80 bytes
*** EOF ***
64 records of 16384 bytes
*** EOF ***
4 records of 80 bytes
*** EOF ***
*** EOF ***
This report shows there are quite a number of files on the tape;
however, most of them are very small (4 or 5 records of 80 bytes
each). Files of this sort tend to be header files or annotation
files containing information describing the imagery, or they may be
special information produced by the operating system of the computer
which produced the tape.The important files are probably 2, 5, and 8. These contain 64 records of 16384 bytes each. From experience, the user knows that imagery tends to come in sizes like 512 pixels by 512 lines, or 1024 x 1024 or 2048 x 2048. Since:
64 * 16384 = 1048576 = 1024 * 1024,
it is probable that each of files 2, 5, and 8 contain a single
channel of imagery with dimensions 1024 pixels by 1024 lines. Each
record of 16384 bytes would thus contain 16 lines of the image
(16*1024 = 16384). Note: it is quite common to pack more than one
line of imagery into a record on tape, since this allows more data
to be put on a tape.@@ifpace To check this assumption, the PACE tape reading programs MIB and MVB can be used. For example, to read the first suspected image file off tape and transfer it to the display:
EASI> MTIW = 0,0,1024,1024 | size of image EASI> VDOW = | overview to display EASI> VDOC = 1 | single channel to display EASI> RECL = 16384 | record length EASI> NLPR = 16 | 16 lines per record EASI> SKRC = 0 | don't skip any records EASI> FRAM = 2 | second file on tape EASI> RUN MVB | transfer to display