relphot has two primary purposes:
relphot can also be used to determine the mosaic grid used to generate photometrically corrected flats (-grid option).
relphot uses only a subset of the photometry data to calculate Mcal and Mrel. In the first stage, calculation of the Mcal values, relphot loads the photometry data from each relevant catalog and creates an internal subset catalog with the function bcatalog, excluding some of the irrelevant data. In addition, it uses flags to mark some of the data as invalid for the processing. bcatalog exclusions
exclude on photcode 0 1 2 3 time range 0 1 2 3 MEAS_POOR 0 1 2 3 MEAS_TOOFEW 0 1 2 3 dophot == 10 0 1 2 inst mag 0 1 2 dophot != 1,2 0 1 ID_IMAGE_POOR 0 1 ID_IMAGE_SKIP 0 1 dophot != 1 0 measure.dM 0for all relphot runs, Mrel is re-calculated, and measures are marked at least if they are outliers in mag or ccd area. setMrel.output needs to do a few things differently from setMrel:
--- configuration variables used by relphot --- MAG_LIM : float ignore measurements fainter than this absolute magnitude SIGMA_LIM : float ignore measurements with magnitude error larger than this value STAR_SCATTER : float mark stars as bad if their scatter is larger than this value IMAGE_SCATTER : float mark images as bad if their scatter is larger than this value IMAGE_OFFSET : float mark images as bad if the absolute value of thie zero point offset is larger than this number STAR_CHISQ : float mark stars as variable if their reduced chisq are larger than this value STAR_TOOFEW : int mark stars as bad if the have fewer than this number of valid measurements IMAGE_TOOFEW : int mark images as bad if the have fewer than this number of valid measurements IMAGE_GOOD_FRACTION : float mark images as bad if the have fewer than this fraction of valid measurements IMAGE_CATALOG : string name of the image catalog file IMAGE_CATALOG_TEMPLATE : string name of the template file to create the image catalog file CATALOG_TEMPLATE : string name of the template file to create the catalog file GSCFILE : string name of the GSC region table CATDIR : string directory where the database is stored PHOTCODE_FILE : string file containing photometry code information ZERO_PT : float default zero point for random data RELPHOT_GRID_X : int scale of mosaic correction grid RELPHOT_GRID_Y : int scale of mosaic correction grid RELPHOT_GRID_BINNING : int deprecated CAMERA_CONFIG : string name of the file containing descriptive information about the camera --- sample ConfigFile entries with typical values --- MAG_LIM 24.0 SIGMA_LIM 0.05 STAR_SCATTER 0.05 IMAGE_SCATTER 0.05 IMAGE_OFFSET 0.2 STAR_CHISQ 10.0 STAR_TOOFEW 3 IMAGE_TOOFEW 10 IMAGE_GOOD_FRACTION IMAGE_CATALOG $CATDIR/Images.dat IMAGE_CATALOG_TEMPLATE $REFSDIR/elixir/template.cat CATALOG_TEMPLATE $REFSDIR/elixir/template.cat GSCFILE $REFSDIR/gsc/GSCregions.tbl CATDIR $CATDIR PHOTCODE_FILE $CONFDIR/camera/$CAMERA.photcode ZERO_PT 25.0 RELPHOT_GRID_X 4 RELPHOT_GRID_Y 8 RELPHOT_GRID_BINNING 512 CAMERA_CONFIG $CONFDIR/camera/$CAMERA.config