| | 5 | |
| | 6 | This system includes a place to record the results of the photometric calibration for individual |
| | 7 | exposures in the GPC1 database. This is used by the IPP postage stamp server to find these |
| | 8 | data for inclusion in the fits headers for single frame images. |
| | 9 | |
| | 10 | The process for updating the database includes a few manual steps that are described in this note. |
| | 11 | |
| | 12 | == DVO calibration == |
| | 13 | The release is calibrated using the DVO programs setphot, relphot, and relastro. |
| | 14 | |
| | 15 | * setphot takes the zero points and flat field corrections measured in the ubercal process and updates the DVO Images table. |
| | 16 | * relphot does the photometric calibration |
| | 17 | * relastro performs the astrometric calibration |
| | 18 | |
| | 19 | Once this is is done all of the exposure level calibration is saved in the DVO fits table Images.dat. For single frame |
| | 20 | images there is one entry for each chip. Up to 60 per exposure. The exposure level zero points are saved in all of the |
| | 21 | chips for a given exposure. |
| | 22 | |
| | 23 | For 3PI.PV1 the DVO used for calibration was LAP.ThreePi.20120706.v2. The data was extracted on 2013-07-31 using ftlist into the files in |
| | 24 | /data/ippc30.1/bills/3pi.pv1.calibration. The scripts used have been saved in the ipp trunk in the directory releasecalib/scripts. |
| | 25 | |
| | 26 | {{{ |
| | 27 | ftlist columns=NAME,MCAL,DMCAL,SECZ,EXPTIME,TZERO,PHOTCO,FLAGS,UBERCAL_DIST /data/ipp060.0/gpc1/catdir/LAP.ThreePi.20120706.v2/Images.working.dat T > Images.working.txt |
| | 28 | }}} |
| | 29 | |
| | 30 | The resulting file has a row for each image. The extractinfo was used to skip stacks and select a single row for each exposure. The row used was the first one |
| | 31 | found with flags & 0x62 XXX list flags, if any. If no images had zero values for these flags the last image was used. (Subsequently it was verified that all rows |
| | 32 | have the same values for the paramters except for FLAGS). |
| | 33 | |
| | 34 | |
| | 35 | {{{ |
| | 36 | perl extractinfo < Images.working.txt > 3pi.pv1.calibration.txt |
| | 37 | }}} |
| | 38 | |
| | 39 | The output file contained 1 row for each exposure with the follwoing columns |
| | 40 | {{{ |
| | 41 | exp_name exp_id cam_id zpcalib zpcalerr mcal filter flags ubercal_dist |
| | 42 | }}} |
| | 43 | |
| | 44 | Finally these data were saved in the gpc1 database using |
| | 45 | |
| | 46 | {{{ |
| | 47 | perl updatecalib 3pi.pv1.calibration.txt >& updatecalib.log |
| | 48 | }}} |
| | 49 | |
| | 50 | Exposure Counts for 3PI.PV1 (relExp.rel_id = 2) |
| | 51 | |
| | 52 | {{{ |
| | 53 | Total Rows 224597 |
| | 54 | Calibrated 211793 |
| | 55 | |
| | 56 | Not Calibrated 12804 |
| | 57 | Towards Pole 3492 |
| | 58 | Galactic Center 8250 |
| | 59 | |
| | 60 | }}} |
| | 61 | |