User's Guide

BRW2CD

Copy AVHRR browse images to CD.

Function:

Create an archive CD containing the data directory specified.

Parameters:

INDIR(--)
Input directory. The directory name from which to read the AVHRR browse images and directory structure. If NULL, the input directory will be the "cd" subdirectory of the $ADAPSMIC directory.

WORKDIR("[SGS18.PDS1.SCRATCH]")
Working directory. Directory where the main working directory structure will be created. The actual working directory will be created inside the main working directory. All directories and files, related to the working directory, will be removed upon completion.

CDID
CD identification. The CD-R library storage location. This ID is printed on the CD media and should reflect the ID used for the archive case label.

Examples:

  1. LAS>brw2cd indir="[path.datadir]" workdir="[path.workdir]" cdid="cdtest"

    A CD will be created containing the data in [path.datadir]. The CDID will be printed on the CD media and should reflect the ID used for the archive case label.

Description/Algorithm:

The data directory is checked to verify it will fit on one CD. The main working directory structure is created from the WORKDIR parameter. DIR2CD is then called to create a CD. After completion of DIR2CD the main working directory structure is removed.

Non Fatal Error Messages:

    None.

Fatal Error Messages:

  1. [brw2cd-env] Error retrieving $ADAPSLOG

    An error was encountered retrieving the $ADAPSLOG environment variable. Set the $ADAPSLOG environment variable to the correct directory location.

  2. [brw2cd-size] Error calculating the size of the data

    An error was encountered calculating the size of the data directory. Verify that the size is under the current allowable size for a CD. See usernote No. 2.

  3. [brw2cd-wdir] Error creating the working directory

    An error was encountered creating the main working directory structure in the specified location. Verify the path and file permissions, then re-run the program. If the problem persists, contact the system manager.

  4. [brw2cd-dir2cd] Error calling DIR2CD

    An error was encountered in the module DIR2CD. Re-run the program. If problem persists, contact the system manager.

  5. [brw2cd-remove] Error removing directories

    BRW2CD was unable to remove the main working directory structure. Remove any created directories. If the problem persists, contact the system manager.

User Note:

  1. Related routines are DIR2CD and MAKECD.

  2. The data directory cannot exceed the limitations of the CD-R. One CD currently holds 650 Megabytes.