Photom -- calculate and apply a photometric solution to astronomical data

The basic idea is to calculate a photometric solution for a night, given a set of catalog stars with known magnitudes and a set of detected stars with instrumental magnitudes.

Usage:

        photom   catalog_file  racol deccol cat_nfilt  V=4 B=6 
                 detected_file racol deccol jdcol aircol flagcol
                 det_nfilt a,b,c d,e,f
                 [ det_files ... ]
                 [radius=] [outfile=]
where
       catalog_file   is name of the ASCII data file containing catalog
                            of standard star data

       racol          is the column of the catalog file in which are the
                            RA values (decimal degrees, J2000)

       deccol         is the column of the catalog file in which are the
                            Dec values (decimal degrees, J2000)

       cat_nfilt      is the number of "filter=column" pairs for the
                            reference catalog, immediately following.
                            Must be >= 1

       V=4            is a "filter=column" pair; here, "V" is the name
                            of a filter, and "4" is the index of the
                            column containing magnitudes in that filter
                            in the catalog

                      There must be exactly "cat_nfilt" such arguments
                            denoting passbands in the catalog file.


       detected_file  is the name of the ASCII data file containing
                            stars detected in some image, with instr. mags

       racol          is the column of the detected file in which are the
                            RA values (decimal degrees, J2000)

       deccol         is the column of the detected file in which are the
                            Dec values (decimal degrees, J2000)

       jdcol          is the column of the detected file in which are the
                            Julian Date values

       aircol         is the column of the detected file in which are the
                            airmass values

       flagcol        is the column of the detected file in which are the
                            "quality flag" values

       det_nfilt      is the number of "filter=magcol,magerrcol" pairs 
                            for the detected files, immediately following.
                            Must be >= 2

       a,b,c          denotes some passband in the detected file:
                            The values a,b,c are integers, where
                                     a   =   column with passband name
                                     b   =   column with magnitude val
                                     c   =   column with magerr val;
				               negative value means a
					       saturated star
                            A comma "," separates the integers.

                      There must be "det_nfilt" such arguments denoting
                      the passbands in the detected file.


       det_files ...  are optional additional names of files with data
                            on stars detected in other images.
                            They are assumed to have the same arrangement
                            of data columns and filter names as the
                            first file

       radius         (optional) radius (in arcseconds) to use when 
                            matching stars in catalog against the
                            detected stars
      
       outfile        (optional) base name of file into which to 
                            write diagnostic output.  

Note that all column numbers should be supplied by the user in 0-indexed form -- this, the first column of data in a file is "0", the second "1", and so forth.


Input files

Here's an example of the input file formats. Lines which start with a pound character "#" will be ignored. One can use input files which have a different number of columns of data, or columns in different order, as long as the command-line arguments to photom correctly describe the required data columns.

We could run the program with a command line like this:

        photom refcat 0 1 2 V=3 I=4 rawmags 1 2 3 4 11 2 5,6,7 8,9,10


Output files

We create three types of output file:

Here are examples of the output file formats. Continuing the example used to illustrate the input file formats (using data files with hundreds of stars), we create the following files:


Last modified Feb 28, 2002, by MWR.