Changeset 5144 for trunk/Ohana/doc/www/html/DVO/relphot.htm
- Timestamp:
- Sep 27, 2005, 7:43:49 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/doc/www/html/DVO/relphot.htm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/doc/www/html/DVO/relphot.htm
r4726 r5144 1 2 <h2> relphot outline </h2> 3 4 <ul> 5 <li> load data 6 <ul> 7 <li> images: match photcode and time range, reset flags 8 <li> measure: select subset matching restritions on: 9 photcode, time, dM, Minst, Mag, dophot == 1 10 </ul> 11 <li> iterate to find Mcal, image.flags: 12 <li> write out modified Mcal values to image table 13 <li> write out modified Mcal values to measure table 14 <li> write out modified Mrel values to average table 15 </ul> 16 17 <h2> relphot overview </h2> 18 19 <p> relphot has two primary purposes:<br> 20 <ul> 21 <li> calculate <b>Mcal</b> for images / measures 22 <li> calculate <b>Mrel</b> for stars 23 </ul> 24 25 <p> relphot can also be used to determine the mosaic grid used to generate 26 photometrically corrected flats (-grid option). 27 28 <h2> data exclusion </h2> 29 30 <p> relphot uses only a subset of the photometry data to calculate 31 Mcal and Mrel. In the first stage, calculation of the Mcal values, 32 relphot loads the photometry data from each relevant catalog and 33 creates an internal subset catalog with the function 34 <em>bcatalog</em>, excluding some of the irrelevant data. In 35 addition, it uses flags to mark some of the data as invalid for the 36 processing. 37 38 <b> bcatalog exclusions </b> 39 <ul> 40 <li> measure.photcode not equivalent to requested photcode 41 <li> measure.dophot != 1 42 <li> measure.Mcat > MAG_LIM 43 <li> measure.dM > SIGMA_LIM 44 <li> measure.Minst out of range (ImagMin - ImagMax) [optional] 45 <li> measure.t out of range (TSTART, TSTOP) 46 </ul> 47 48 <b> flagged data </b> 49 50 <b> flagged image data </b> 51 52 images can be flagged by setting bits of <b>image.code</b> 53 54 stars can be flagged by setting bits of <b>average.code</b> 55 56 measures can be flagged by setting bits of <b>measure.flag</b> 57 58 <b>image.code</b> 59 60 ID_IMAGE_NOCAL : ignore, irrelevant 61 ID_IMAGE_POOR : image measured bad 62 ID_IMAGE_SKIP : externally known bad 63 64 dMcal > VALUE FLAG_IMAGE_SCATTER <em>clean_images</em> 65 fabs(Mcal) > VALUE FLAG_IMAGE_ZEROPT <em>clean_images</em> 66 67 dMcal > VALUE FLAG_IMAGE_SCATTER <em>clean_mosaics</em> 68 fabs(Mcal) > VALUE FLAG_IMAGE_ZEROPT <em>clean_mosaics</em> 69 70 <em> mark_images </em> does not seem to do anything useful? 71 72 <b>average.code</b> 73 74 Ngood < MEAS_TOOFEW <em>setMrel</em> 75 Ngood < MEAS_TOOFEW <em>clean_measures</em> 76 ChiSq > STAR_CHISQ <em>clean_stars</em> 77 dM > STAR_SCATTER <em>clean_stars</em> 78 79 average.code (STAR_BAD) is not saved by relphot: it is set by 80 clean_stars, clean_measures, and setMrel, but not setMrelOutput. 81 STAR_BAD should only be internal since it depends on the photcode, but 82 is not associated with a specific photcode in the data. Just in case, 83 it is reset to 0 in setMrelFinal. 84 85 <b>measure.flag</b> 86 87 X,Y out of range <em>setExclusions</em> 88 3 sigma clipping <em>clean_measures</em> 89 90 <h2> setting Mrel final value </h2> 91 92 setMrelFinal is used to set the final average.Mrel values. We do this 93 in 4 stages. In each stage, we set the Mrel values for stars which 94 have not already been set, based on the current exclusion settings. 95 At successive stages, we relax the exclusions, allowing the more 96 spurious objects to have a valid Mrel value to be set. In this loop, 97 we actually run setMrelOutput twice: once to get the approximate Mrel 98 value, then we flag the outlier measurements with clean_measure, 99 then we redetermine the Mrel values on this basis, and mark the stars 100 for exclusion from the next iteration. 101 102 <pre> 103 exclude on 104 photcode 0 1 2 3 105 time range 0 1 2 3 106 MEAS_POOR 0 1 2 3 107 MEAS_TOOFEW 0 1 2 3 108 dophot == 10 0 1 2 109 inst mag 0 1 2 110 dophot != 1,2 0 1 111 ID_IMAGE_POOR 0 1 112 ID_IMAGE_SKIP 0 1 113 dophot != 1 0 114 measure.dM 0 115 </pre> 116 117 for all relphot runs, Mrel is re-calculated, and measures are marked 118 at least if they are outliers in mag or ccd area. 119 120 setMrel.output needs to do a few things differently from setMrel: 121 <ul> 122 <li> set measure.Mcal (skipped in setMrel.basic) 123 <li> set average.Mrel if N < TOO_FEW (not STAR_BAD) (optional!) 124 <li> use MAX (stats.error, stats.sigma) (optionally) 125 <li> allow STAR_BAD? 126 </ul> 127 128 <h2> imphotset </h2> 129 130 imphotset allows you to set certain phot.image table entries. here 131 are the options: 132 133 imphotset [-photcode code] [-name foo] [-trange (start) (stop)] -flag and value 134 135 136 Here is a complete list of relphot configuration variable names, a 137 quick description, and reasonable values to start with: 138 139 <pre> 140 --- configuration variables used by relphot --- 141 MAG_LIM : float 142 ignore measurements fainter than this absolute magnitude 143 144 SIGMA_LIM : float 145 ignore measurements with magnitude error larger than this value 146 147 STAR_SCATTER : float 148 mark stars as bad if their scatter is larger than this value 149 150 IMAGE_SCATTER : float 151 mark images as bad if their scatter is larger than this value 152 153 IMAGE_OFFSET : float 154 mark images as bad if the absolute value of thie zero point offset 155 is larger than this number 156 157 STAR_CHISQ : float 158 mark stars as variable if their reduced chisq are larger than this value 159 160 STAR_TOOFEW : int 161 mark stars as bad if the have fewer than this number of valid measurements 162 163 IMAGE_TOOFEW : int 164 mark images as bad if the have fewer than this number of valid measurements 165 166 IMAGE_GOOD_FRACTION : float 167 mark images as bad if the have fewer than this fraction of valid measurements 168 169 IMAGE_CATALOG : string 170 name of the image catalog file 171 172 IMAGE_CATALOG_TEMPLATE : string 173 name of the template file to create the image catalog file 174 175 CATALOG_TEMPLATE : string 176 name of the template file to create the catalog file 177 178 GSCFILE : string 179 name of the GSC region table 180 181 CATDIR : string 182 directory where the database is stored 183 184 PHOTCODE_FILE : string 185 file containing photometry code information 186 187 ZERO_PT : float 188 default zero point for random data 189 190 RELPHOT_GRID_X : int 191 scale of mosaic correction grid 192 193 RELPHOT_GRID_Y : int 194 scale of mosaic correction grid 195 196 RELPHOT_GRID_BINNING : int 197 deprecated 198 199 CAMERA_CONFIG : string 200 name of the file containing descriptive information about the camera 201 202 --- sample ConfigFile entries with typical values --- 203 204 MAG_LIM 24.0 205 SIGMA_LIM 0.05 206 STAR_SCATTER 0.05 207 IMAGE_SCATTER 0.05 208 IMAGE_OFFSET 0.2 209 STAR_CHISQ 10.0 210 STAR_TOOFEW 3 211 IMAGE_TOOFEW 10 212 IMAGE_GOOD_FRACTION 213 IMAGE_CATALOG $CATDIR/Images.dat 214 IMAGE_CATALOG_TEMPLATE $REFSDIR/elixir/template.cat 215 CATALOG_TEMPLATE $REFSDIR/elixir/template.cat 216 GSCFILE $REFSDIR/gsc/GSCregions.tbl 217 CATDIR $CATDIR 218 PHOTCODE_FILE $CONFDIR/camera/$CAMERA.photcode 219 ZERO_PT 25.0 220 RELPHOT_GRID_X 4 221 RELPHOT_GRID_Y 8 222 RELPHOT_GRID_BINNING 512 223 CAMERA_CONFIG $CONFDIR/camera/$CAMERA.config 224 </pre>
Note:
See TracChangeset
for help on using the changeset viewer.
