NOTE: The PCI interchange format written by MAGWR is not compatible with any existing formats. Attempting to read the tape with programs other than MAGRD or MAGREP may fail.
If the PCIDSK database is `FILE' interleaved (that is, the image channels are held on separate files) then MAGWR will only save the PCIDSK header to tape. The image channels are NOT saved. A warning message is printed to inform the user of this.
Name Prompt Count Type FILI Input File Name 1-64 Char FILETYPE File Type: PCIDSK/TEXT 1-8 Char MESSAG File Message 0-64 Char STARTFIL Start File on Tape 0-1 Int
EASI> FILI = "filespec"
EASI> FILETYPE = "PCIDSK" | if file is image database EASI> FILETYPE = "TEXT" | if file is text
EASI> MESSAG = "text"
EASI> STARTFIL = n | place file after file n-1 on tape
| (this becomes the last file on tape)
EASI> STARTFIL = | append the file to the end of the last
| file on tape
For a tape with no files on it, STARTFIL must be set to 1.
Each tape can hold multiple files. Each file on tape consists of a short header followed by the actual data. Files can span tapes, allowing large image files to be stored.
The type of file being written to tape must be specified using FILETYPE. If a PCIDSK image database file is being transferred, FILETYPE must equal "PCIDSK". If a text file is being transferred, FILETYPE must equal "TEXT".
If STARTFIL>0, MAGWR assumes that the user knows exactly where to put the file on tape. MAGWR will locate the position to place the file if 0 < STARTFIL < n+1, where n is the total number of files on tape. A new file written to tape is always the last file on the tape because all files with a file number greater than or equal to STARTFIL will be overwritten by the new file, which is followed two EOFs. If the user is unsure where to put the file, setting STARTFIL= (unspecified) will append the file to the end of file list.
The MESSAG parameter allows the user to assign a 1 to 64-character identifying string to the file stored on tape.
The contents of a tape can be checked using the MAGREP program.
A TAPE WITH A WRITE-RING MUST BE MOUNTED ON THE TAPE DRIVE BEFORE MAGWR CAN BE RUN. CLEANING THE TAPE HEAD IS RECOMMENDED TO MINIMIZE THE CHANCE OF TAPE WRITE ERRORS.
+--------------+
| File Header |
+--------------+
| PCIDSK image |
| or text File |
+--------------+
| EOF |
+--------------+
| File Header |
+--------------+
| PCIDSK image |
| or text File |
+--------------+
| EOF |
+--------------+
.
.
.
+--------------+
| File Header |
+--------------+
| PCIDSK image |
| or text File |
+--------------+
| EOF |
+--------------+
| EOF |
+--------------+
The tape format can span multiple tapes. The user is responsible for
correctly labelling the multi-tape set and mounting tapes in proper
sequence. MAGWR prompts the user to mount the next tape.
The file header consists of one physical record, 512 bytes in length. It is created and filled with the information provided by the user and MAGWR to describe the file written on the tape. The file header format is described below:
Type Description
+---------------------------------------------------+
| A16 | "PCI EASI/PACE " |
|-----+---------------------------------------------|
| A8 | File type ("PCIDSK " or "TEXT " |
|-----+---------------------------------------------|
| I8 | Sequence number |
|-----+---------------------------------------------|
| A16 | Time and date of writing (HH:MM DD-MMM-YY) |
|-----+---------------------------------------------|
| A64 | File name (always of form XXXXX.XXX) |
|-----+---------------------------------------------|
| A64 | Comment for the file |
|-----+---------------------------------------------|
| I8 | Number of records to write (PCIDSK only) |
|-----+---------------------------------------------|
| A328| Blanks |
+---------------------------------------------------+
EASI>FILI = "DEMO.EAS" EASI>FILETYPE = "TEXT" EASI>MESSAG = "EASI procedure to run a demo for IMAGERY.PIX" EASI>STARTFIL = 1 EASI>RUN MAGWR EASI>FILI = "IMAGERY.PIX" EASI>FILETYPE = "PCIDSK" EASI>MESSAG = "A PCIDSK image file" EASI>STARTFIL = 2 EASI>RUN MAGWR