DEIMOS
newday script

Name

newday -- set up directory, filename prefix, etc.

Purpose

Prepare the instrument for a new day of observing by
locating the data disk with the most available space and
creating a science data directory there. Also:
= sets the science mosaic outdir keyword appropriately
= sets the science image filename prefix based on the UT date
= creates an "fcs" subdirectory for FCS images
= sets the FCS outdir keyword appropriately
= sets the FCS image filename prefix based on the UT date
= copies over any FCS reference files from the old data directory,
IF the old data directory was also owned by the same user
= reset next science and FCS image numbers to 1
= enable saving to disk for both science and FCS system

Usage

newday [-test] [disk]

Flags

-test = execute only if no directory is already set up for today

Arguments

disk = 1-digit number of disk to be used for data storage.
Default is to let the newdir command select the best disk.

Output

none

Restrictions

none

Exit values

0 = normal completion
1 = wrong number of arguments

Example

1) Set up new directories for today:
newday

2) Set up new directories on disk /sdata1004:
newday 4

3) Set up new directories only if not already done:
newday -test

See Also

The shell script newday
DEIMOS script index


Go to: DEIMOS Home Page - Instruments Home Page - Keck Home Page

Last modified: Tue Feb 28 16:03:39 2006