Here I use a number of unix tasks, along with wcstools.gethead to find the names of targeted image. First, I want to see how large my image directories are:
% du -sh /home/sco/sco/Red*/* 2.2G /home/sco/sco/Red_PhaseI_Data/apr_2004_p1 1.6G /home/sco/sco/Red_PhaseI_Data/apr_2005_p1 * * *I decide I want to see what is in the images of the subdirectory named "apr_2005_p1".
% gethead -u -f /home/sco/sco/Red_PhaseI_Data/apr_2005_p1/*.fits OBJECT >LIST_1 % wc -l LIST_1 107 LIST_1 % head LIST_1 N2911 N2911 N2911 N2911 N2911 N2911 N2911 N2911 N2911 N4618 % sort -u LIST_1 N2911 N3486 N4051 N4321 N4618 N5364 N5474 N5701 N5850 N6140 SA101 SA97 SA99In the example above I show how I easily determine the size of LIST_1, how I look at the first 10 lines in LIST_1, and finally how I a sorted listing of the unique OBJECT names in LIST_1. This runs very quickly. Less than a second! One important thing to notice in this example is how the "-f" flag is used in gethead so that the image file names are NOT listed.