Purpose

Given a list of images, parse the image headers and print
out a formatted list of data. With no arguments, parse all of
the images in the current directory in the order in which
they were written to disk.

Usage

obslog [-q] [n | images]

Flags

-q = quiet mode; no warnings

Arguments

n = number of latest images to parse.
images = names of images to parse. If no images are listed,
then all images in the current directory will be read
(EXCEPT for backup.fits).

Output

to STDOUT

Restrictions
None

Note

The output from this program is extra wide. To print it, use

this command

enscript -1r -c -f Courier9 -P lw4s

Exit values

0 = normal completion
1 = wrong number of arguments

Example

1) Generate log data for all images in the current directory

obslog

Generate log data for the last 5 images in the current directory

obslog 5

3) Generate log data for all images in the directory

s/sdata1001/lris1/2003jan01

obslog /s/sdata1001/lris1/2003jan01/*.fits

Modification history

2006-Feb-12 GDW Original version, adapted from DEIMOS
2006-Feb-17 GDW Fixed lamp problem
2006-May-08 GDW Added "-q" flag
2009-Jun-15 MK Updated to work with MHDU FITS headers in
use with the new red upgrade. Keywords
changed in the upgrade.
2009-Jun-18 MK Modified to include OBJECT, and use
UTC instead of old UT Header keywords
-----------------------------------------------------------------------
declarations...
define logsheet fields...
check args...
get options...
build default image list...
expunge bad filenames from image list.

NOTE

parse args...
verify number of images...
get some information from the first LRIS image...
print header...
loop over images...
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------