Purpose

Generate an output directory based on the account name and
the UT date. Select the data disk with the most disk space
if no disk number is provided. Create the output directory if
it does not yet exist. Verify that it is a directory and that
the user has write access to it. Redefine red and/or blue OUTDIR
keywords appropriately.

Usage

newdir [side [disk]]

Arguments

side [red | blue | both] side of LRIS for which to set outdir
[default=both]
disk 3-digit number of the desired data disk

Output

Feedback is written to standard output

Side effcts

The OUTDIR keyword in the "lris" and/or "lrisblue" keyword
libraries is modified.

Restrictions

None

Exit values

0 = normal completion
1 = wrong number of arguments
2 = invalid side argument
3 = invalid datadisk argument
4 = could not create directory
5 = desired output directory exists, but is not a directory
6 = you do not have write access to the suggested outdir

Example

1) generate a new output directory for red images on disk 222

newdir red 222

2) Generate a new output directory for both red and blue images

on the data disk with the most available space

newdir