Changeset 38310
- Timestamp:
- May 23, 2015, 6:32:43 AM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150419/Ohana/src/addstar/test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
relphot.flatcorr.dvo (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150419/Ohana/src/addstar/test
- Property svn:ignore
-
old new 17 17 relphot.Mcal.dMcal.png 18 18 catdir.wise.test 19 dvo.photcodes 20 ptolemy.rc 21 tap.log
-
- Property svn:ignore
-
branches/eam_branches/ipp-20150419/Ohana/src/addstar/test/relphot.flatcorr.dvo
r38309 r38310 21 21 if (not($?PLOT)) set PLOT = 0 22 22 23 $USE_CELL_OFFSETS = 1; # turn on non-zero cell offsets23 $USE_CELL_OFFSETS = 0; # turn on non-zero cell offsets 24 24 $SET_UC_RESID = 1; # write a non-zero resid value to the ubercal table (should not have an impact) 25 25 $DO_2MASS = 0 26 $DO_SYNTH = 0 27 $DO_TYCHO = 0 26 28 27 29 # set various global variables … … 68 70 echo "2011 2MASS_J ref 0.000 0.000 0.000 - - 0.0000 0 6 0.080 0.000 2.000 0.000 0x0000 0x0000 0x0000 0x0000" 69 71 echo "3001 SYNTH.g ref 0.000 0.000 0.000 - - 0.0000 0 1 nan 0.000 2.000 0.600 0x0000 0x0000 0x0000 0x0000" 72 echo "2020 TYCHO_B ref 0.000 0.000 0.000 - - 0.0000 0 - 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000" 70 73 output stdout 71 74 … … 162 165 mk2mass $fileroot $catdir 163 166 ck2mass addstar 164 167 165 168 mksynth $fileroot $catdir 166 169 cksynth addstar … … 169 172 mktycho $fileroot $catdir 170 173 cktycho addstar 171 break172 174 173 175 tapPLAN {((mjd_uc[]*4 + mjd_nc[]*4) + (mjd_uc[] + mjd_nc[]) + (mjd_uc[] + mjd_nc[])) / 3} … … 192 194 193 195 # run relphot on the db and check that the images now match the expected values 194 tapEXEC relphot -images g,r -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 -D IMAGE_OFFSET 0.5 -update 196 tapEXEC relphot -images g,r -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 -D IMAGE_OFFSET 0.5 -update -synthphot_zpts $fileroot.synthzpts.fits 195 197 for i 0 mjd_uc[] 196 198 ckexposure $catdir mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i relphot … … 202 204 203 205 tapDONE 206 end 207 208 macro try.relphot 209 # run relphot on the db and check that the images now match the expected values 210 # tapEXEC relphot -images g,r -v -region 9.5 10.5 19.5 20.5 -D CATDIR $1 -D STAR_TOOFEW 1 -D SIGMA_LIM 0.07 -statmode WT_MEAN -cloud-limit 0.5 -D IMAGE_OFFSET 0.5 -update -synthphot_zpts $fileroot.synthzpts.fits 211 tapEXEC relphot -images g,r -v -region 9.5 10.5 19.5 20.5 -D CATDIR $1 -D STAR_TOOFEW 1 -D SIGMA_LIM 0.07 -statmode WT_MEAN -cloud-limit 0.5 -D IMAGE_OFFSET 0.5 -update 212 for i 0 mjd_uc[] 213 ckexposure $1 mjd_uc[$i] zpt_uc[$i] exptime_uc[$i] airmass_uc[$i] $filt_uc:$i relphot 214 end 215 for i 0 mjd_nc[] 216 ckexposure $1 mjd_nc[$i] zpt_nc[$i] exptime_nc[$i] airmass_nc[$i] $filt_nc:$i relphot 217 end 204 218 end 205 219 … … 281 295 dev -n 1 282 296 lim mag dm; clear; box; plot mag dm; plot -c red -pt 7 mag dm where (photflags & 0x00000002) 297 dev -n 2 298 lim xccd dm; clear; box; plot xccd dm; plot -c red -pt 7 xccd dm where (photflags & 0x00000002) 299 dev -n 3 300 lim ra dm; clear; box; plot ra dm; plot -c red -pt 7 ra dm where (photflags & 0x00000002) 283 301 echo "red points are known bad photometry" 284 302 end … … 357 375 vstat -q dm_good 358 376 sprintf line "relphot ZP %8.2f $FILTER %6.3f %6.3f %6.3f: %7.4f %7.4f : %3d" $MJD_IMAGE $ZPT_REAL $ZPT_REAL_NORM $ZPT_NOMINAL $MEAN $SIGMA dm_good[] 359 tapOK {abs($MEAN) < 0.005} "$line" 377 tapOK {abs($MEAN) < 0.001} "$line" 378 tapOK {abs($SIGMA) < 0.001} "$line" 360 379 361 380 mextract ra dec dbflags … … 558 577 end 559 578 579 if (not($DO_2MASS)) return 580 560 581 local ROOT CATDIR 561 582 … … 580 601 break 581 602 end 603 604 if (not($DO_2MASS)) return 582 605 583 606 if ("$1" == "addstar") … … 612 635 end 613 636 637 if (not($DO_SYNTH)) return 638 614 639 local ROOT CATDIR 615 640 … … 634 659 end 635 660 661 if (not($DO_SYNTH)) return 662 636 663 if ("$1" == "addstar") 637 664 skyregion {$RA_CENTER - 0.2/dcos($DEC_CENTER)} {$RA_CENTER + 0.2/dcos($DEC_CENTER)} {$DEC_CENTER - 0.2} {$DEC_CENTER + 0.2} … … 659 686 end 660 687 688 if (not($DO_TYCHO)) return 689 661 690 local ROOT CATDIR 662 691 … … 672 701 write $ROOT.tycho.dat -f "%10.6f %10.6f %6.3f %6.3f 0x%x" r_tycho d_tycho m_tycho dm_tycho fl_tycho 673 702 674 tapEXEC addstar -ref $ROOT.tycho.dat -D CATDIR $CATDIR -D CAMERA gpc1 -quick-airmass -photcode TYCHO .g675 676 $KAPA = kapa -noX703 tapEXEC addstar -ref $ROOT.tycho.dat -D CATDIR $CATDIR -D CAMERA gpc1 -quick-airmass -photcode TYCHO_B 704 705 # $KAPA = kapa -noX 677 706 dev -n tmpdev 678 section default -imtool none707 # resize 100 100 679 708 resize 50 50 680 709 region $RA_CENTER $DEC_CENTER 0.2 710 section default -imtool none 711 # causes trouble for this to come before region... 681 712 create tmp 0 1 682 713 cdensify tmpmap tmp tmp 683 714 set map = zero(tmpmap) + 0.2 684 close715 # close 685 716 $KAPA = kapa 686 717 … … 701 732 end 702 733 734 if (not($DO_TYCHO)) return 735 703 736 if ("$1" == "addstar") 704 737 skyregion {$RA_CENTER - 0.2/dcos($DEC_CENTER)} {$RA_CENTER + 0.2/dcos($DEC_CENTER)} {$DEC_CENTER - 0.2} {$DEC_CENTER + 0.2} 705 mextract ra dec mag xccd yccd dbflags photflags where (photcode == 3001)738 mextract ra dec mag xccd yccd dbflags photflags where (photcode == 2020) 706 739 tapOK {ra[] == r_tycho[]} "read in as many tycho stars as we generated" 707 740 … … 712 745 713 746 if ("$1" == "relphot") 714 subset rs = r_tycho if (m_tycho < 1 3.5)715 subset ds = d_tycho if (m_tycho < 1 3.5)747 subset rs = r_tycho if (m_tycho < 12) 748 subset ds = d_tycho if (m_tycho < 12) 716 749 avmatch rs ds 0.1 g:flags 717 750 subset tmp = rs if (g:flags & 0x04); # tycho used for photometry
Note:
See TracChangeset
for help on using the changeset viewer.
