DEIMOS
nightpath script

Name

nightpath -- return the path of the 'nightly' directory

Purpose

Print a string containing the predicted name of the 'nightly'
directory into which cam images and other nightly data are placed.
This directory is predicted based on the instrument in use and can
be overridden by use of the "side" parameter.

Usage

nightpath [side] [net]

Arguments

side = [1|2] Telescope side in use (1=Keck I, 2=Keck II)
net = [h|s] Network (h = HQ, s = summit)

Output

String is printed to stdout

Restrictions

None

Exit values

0 = normal completion
1 = wrong number of arguments

Example

1) Generate the summit nightly directory path for the current
instrument:
nightpath

2) Generate the HQ nightly directory path for Keck II:
nightpath 2 h

3) Generate an alias to switch to the appropriate directory:
alias cdn 'chdir `nightpath \!*` ; pwd'

See Also

The shell script nightpath
DEIMOS script index


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

Last modified: Wed Jun 9 16:30:31 2004