Changeset 38301
- Timestamp:
- May 21, 2015, 7:47:04 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150419/Ohana/src/addstar/test
- Files:
-
- 2 edited
-
relphot.dvo (modified) (2 diffs)
-
relphot.flatcorr.dvo (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150419/Ohana/src/addstar/test/relphot.dvo
r35760 r38301 1 1 # -*-sh-*- 2 if (not($?VERBOSE)) set VERBOSE = 0 2 3 3 4 input tap.dvo … … 41 42 end 42 43 43 echo relphot -D CATDIR catdir.test r -region {$RA-1.0} {$RA+1.0} {$DEC-1.0} {$DEC+1.0} -update -nloop 10.0 44 exec relphot -D CATDIR catdir.test r -region {$RA-1.0} {$RA+1.0} {$DEC-1.0} {$DEC+1.0} -update -nloop 10.0 >& /dev/null 44 $output = >& /dev/null 45 if ($VERBOSE > 2) 46 $output = 47 end 48 $command = relphot -D CATDIR catdir.test -region {$RA-1.0} {$RA+1.0} {$DEC-1.0} {$DEC+1.0} -update -nloop 10.0 -images r 49 echo $command 50 exec $command $output 45 51 46 52 catdir catdir.test -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/test/relphot.flatcorr.dvo
r33653 r38301 34 34 35 35 # images are loaded into dvo with GPC1 photcodes, so we need to get the nominal zps for those filters 36 $zpt_nominal:g = 24. 5836 $zpt_nominal:g = 24.00 37 37 $zpt_nominal:r = 24.80 38 38 $zpt_nominal:i = 24.74 … … 41 41 42 42 # klam is negative, so klam*(airmass - 1) increase the zero point 43 $klam_nominal:g = -0.1543 $klam_nominal:g = 0.00 44 44 $klam_nominal:r = -0.10 45 45 $klam_nominal:i = -0.04 … … 50 50 51 51 # sequence to count images (only used in this function) 52 create tmpseq 0 953 54 $filt_uc:n = 952 create tmpseq 0 1 53 54 $filt_uc:n = 1 55 55 $filt_uc:0 = g 56 56 $filt_uc:1 = g … … 75 75 # ubercal zero points are defined as ZP_nominal + 2.5log(exptime) + K*(airmass - 1.0) 76 76 # note that K is defined as a negative value (is this sensible?) 77 set zpt_uc = 2 5.0 + 2.5*log(exptime_uc) + klam_uc*(airmass_uc - 1.0) + tmpseq*0.0050 - 0.002577 set zpt_uc = 24.0 + 2.5*log(exptime_uc) + klam_uc*(airmass_uc - 1.0) + tmpseq*0.0050 - 0.0025 78 78 79 79 set mjd_uc = zero(zpt_uc) 80 80 mjd_uc[0] = 55000.01 81 mjd_uc[1] = 55000.0282 mjd_uc[2] = 55000.0383 mjd_uc[3] = 55015.0184 mjd_uc[4] = 55015.0285 mjd_uc[5] = 55015.0386 mjd_uc[6] = 55025.0187 mjd_uc[7] = 55025.0288 mjd_uc[8] = 55025.0381 # mjd_uc[1] = 55000.02 82 # mjd_uc[2] = 55000.03 83 # mjd_uc[3] = 55015.01 84 # mjd_uc[4] = 55015.02 85 # mjd_uc[5] = 55015.03 86 # mjd_uc[6] = 55025.01 87 # mjd_uc[7] = 55025.02 88 # mjd_uc[8] = 55025.03 89 89 90 90 # mjd and zpt values for not-ubercal'ed images 91 $filt_nc:n = 991 $filt_nc:n = 1 92 92 $filt_nc:0 = g 93 93 $filt_nc:1 = g … … 115 115 set mjd_nc = zero(zpt_nc) 116 116 mjd_nc[0] = 55000.11 117 mjd_nc[1] = 55000.12118 mjd_nc[2] = 55000.13119 mjd_nc[3] = 55015.11120 mjd_nc[4] = 55015.12121 mjd_nc[5] = 55015.13122 mjd_nc[6] = 55025.11123 mjd_nc[7] = 55025.12124 mjd_nc[8] = 55025.13117 # mjd_nc[1] = 55000.12 118 # mjd_nc[2] = 55000.13 119 # mjd_nc[3] = 55015.11 120 # mjd_nc[4] = 55015.12 121 # mjd_nc[5] = 55015.13 122 # mjd_nc[6] = 55025.11 123 # mjd_nc[7] = 55025.12 124 # mjd_nc[8] = 55025.13 125 125 end 126 126 … … 150 150 mksequence $fileroot $catdir 151 151 for i 0 mjd_uc[] 3 152 ckexposure catdir.test mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i raw 152 echo ckexposure $catdir mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i raw 153 ckexposure $catdir mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i raw 154 break 153 155 end 154 156 for i 0 mjd_nc[] 3 155 ckexposure catdir.testmjd_nc[$i] zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] $filt_nc:$i raw157 ckexposure $catdir mjd_nc[$i] zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] $filt_nc:$i raw 156 158 end 157 159 … … 159 161 exec setphot -update -ubercal testzpt.fits -D CATDIR $catdir 160 162 for i 0 mjd_uc[] 3 161 ckexposure catdir.testmjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i setphot_uc163 ckexposure $catdir mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i setphot_uc 162 164 end 163 165 for i 0 mjd_nc[] 3 164 ckexposure catdir.testmjd_nc[$i] zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] $filt_nc:$i setphot_nc166 ckexposure $catdir mjd_nc[$i] zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] $filt_nc:$i setphot_nc 165 167 end 166 168 167 169 # run relphot on the db and check that the images now match the expected values 168 exec relphot g,r,i -v -region 9.5 10.5 19.5 20.5 -D CATDIR catdir.test-D STAR_TOOFEW 1 -D SIGMA_LIM 0.07 -statmode WT_MEAN -cloud-limit 0.5 -keep-ubercal -D IMAGE_OFFSET 0.5 -update >& tmp.log170 exec relphot g,r,i -v -region 9.5 10.5 19.5 20.5 -D CATDIR $catdir -D STAR_TOOFEW 1 -D SIGMA_LIM 0.07 -statmode WT_MEAN -cloud-limit 0.5 -keep-ubercal -D IMAGE_OFFSET 0.5 -update >& tmp.log 169 171 for i 0 mjd_uc[] 3 170 ckexposure catdir.testmjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i relphot172 ckexposure $catdir mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i relphot 171 173 end 172 174 for i 0 mjd_nc[] 3 173 ckexposure catdir.testmjd_nc[$i] zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] $filt_nc:$i relphot175 ckexposure $catdir mjd_nc[$i] zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] $filt_nc:$i relphot 174 176 end 175 177 … … 280 282 281 283 set dm_adjust = dm$ix\$iy - $ZPT_NOMINAL + $ZPT_REAL_NORM + cell_off[$ix][$iy] 282 vstat -q dm_adjust 284 echo set dm_adjust = dm$ix\$iy - $ZPT_NOMINAL + $ZPT_REAL_NORM + cell_off[$ix][$iy] 285 286 vstat dm_adjust 283 287 tapOK {abs($MEAN) < 0.005} "addstar raw ZP $MJD_IMAGE $FILTER" 284 288 end … … 317 321 # we have defined a set of mjd and zero point values for ubercal'ed images 318 322 # for i 0 mjd_uc[] 319 for i 0 mjd_uc[] 3323 for i 0 mjd_uc[] 1 320 324 mkexposure $1.uc.$i $RA_CENTER $DEC_CENTER zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] mjd_uc[$i] $filt_uc:$i $2 321 325 end 326 return 322 327 323 328 # we have a second set of mjd and zero point values for non-ubercal'ed images 324 329 # for i 0 mjd_nc[] 325 for i 0 mjd_nc[] 3330 for i 0 mjd_nc[] 1 326 331 mkexposure $1.nc.$i $RA_CENTER $DEC_CENTER zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] mjd_nc[$i] $filt_nc:$i $2 327 332 end … … 379 384 # the fake images have inconsistent ra,dec and airmass,sidtime values 380 385 echo addstar $ROOT.$ix.$iy.cmf -D CATDIR $CATDIR -D CAMERA gpc1 -quick-airmass 381 exec addstar $ROOT.$ix.$iy.cmf -D CATDIR $CATDIR -D CAMERA gpc1 -quick-airmass >& tmp.log 382 end 386 exec addstar $ROOT.$ix.$iy.cmf -D CATDIR $CATDIR -D CAMERA gpc1 -quick-airmass 387 end 388 return 383 389 end 384 390 end … … 456 462 457 463 # define the season boundaries 458 keyword phu TS0_0000 -wf 55000.0459 keyword phu TS1_0000 -wf 55010.0460 keyword phu TS0_0001 -wf 55010.0461 keyword phu TS1_0001 -wf 55020.0462 keyword phu TS0_0002 -wf 55020.0463 keyword phu TS1_0002 -wf 55030.0464 keyword phu S0_MJD0 -wf 55000.0 465 keyword phu S1_MJD0 -wf 55010.0 466 keyword phu S0_MJD1 -wf 55010.0 467 keyword phu S1_MJD1 -wf 55020.0 468 keyword phu S0_MJD2 -wf 55020.0 469 keyword phu S1_MJD2 -wf 55030.0 464 470 465 471 # create a single flat-field correction map for a single chip
Note:
See TracChangeset
for help on using the changeset viewer.
