Generate a list of PAS images. This is specifically for searching PAS directory trees.
% pas_imlistgen --help
# The "--help" flag gives a long example of using the arg1 values below.
Usage: pas_imlistgen l acm N
arg1 - list code, "l" for last OR "a" for ALL OR "o" for ONE OR "g" for group
arg2 - Type of PAS image to search for (acm,gc1,...)
arg3 - run in debug mode (Y/N)
See --help for explanation and options
The first argument is designated as the "listcode" and it specifies
which images are to be written to the output list:
listcode Action
l Take the last image
a Take all images
o Take one specific image (user is queried)
g Take a group of images (user is queried)
n Take only new images (images not in a pre-existing list.IMAGES)
As with other such PAS-related tools, we usually use two local files
to specify the original source of the images:
BaseDir = top level of the directory (On mcd this is usually /hetdata/data)
Date = the UT date string for the night (i.e. 20180829)
Note that I hardly ever use the listcode values of "o" or "g". The "n" option is
usually used when I am processing images on mcs during a night of observing. As
time goes by, new images are added to the data directory. Instead of re-processing
everythin in the fill list (list.IMAGES) we might want to process only the new
images (in List0) and these to some pre-existing data collection (e.g. the ACMDAT
table file collected with acm_table_markII).
After a typical run the local working directory will look something like this.
% ls
BaseDir Date List0 list.IMAGES S/
List0 = list of images according to the listcode value
list.IMAGES = ALL of the valid PAS image that were in the directory specified
by the (BaseDir,Date) files.