Design Document for NDFOUT
NDFOUT
AUTHOR: Tim Ratliff
Functional Summary:
Write LAS image(s) to NLAPS Data Format (NDF) tape(s).
Comments:
NONE
Background:
The routine NDFIN was created to read in NDF format tapes and
convert the NDF images to LAS. There existed no routine to
convert LAS images to NDF format files and write the files to
tape media.
Requirements:
Ability to handle volume spanning
Formats of BSQ and BIL must be available
Sub-windowing and sub-banding capabilities
Be able to write to 8mm, 3490, 3480 tape types
Scope/Limitations:
Input image(s) must be LAS format
Will not create tape labels for the tapes
Can only write to 8mm, 3490, 3480 tape media's
Overall design:
Flow diagram:
Postscript version available here

Postscript version available here

Algorithm:
- Run LAS2NDF to convert the LAS image(s) to NDF format
- Call TAPECHECK to determine if volume spanning is required
- Start DITTO application
- for each volume do
- Allocate the tape drive as the output device
- for each file per volume do
- Use GETPARM to read in the name of the file to write to tape
- Allocate the file as the input device
- Copy the file from disk to tape
- Deallocate the file as the input device
- Deallocate the tape as the output device
- Exit DITTO application
- Delete the project parameter file
- If the DELFLG = YES
- Delete the NDF header files
- for each file do
- Delete the NDF image files
- Exit NDFOUT
Testing criteria:
Test if volume spanning is correctly determined, and if so,
the additional headers are correctly created.
Test if each format, BSQ, BIL, works
Test writing to all 3 tape media types
Test all error conditions
Test with LAS images of: maxlines, maxsamples, maxbands,
I*2, I*4
Test writing to tape, then reading tape back in with
NDFIN