IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2017, 12:49:44 PM (9 years ago)
Author:
eugene
Message:

check on dvo config, pass in camera for relphot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/test/mkgpc1data.dvo

    r39165 r40221  
    7575  $dbuser = dvo
    7676  $dbpass = dvo
    77 #  $dbuser = czw
    78 #  $dbpass = czw
    79 
     77
     78  $gscfile = `gconfig GSCFILE`
     79  if ("$gscfile" == "not found")
     80    echo "problem with dvo / ptolemy configuration.  check ~/.ptolemyrc"
     81    break
     82  end
     83   
    8084  exec mkgpc1.sh delete $dbhost $dbname $dbuser $dbpass
    8185  exec mkgpc1.sh create $dbhost $dbname $dbuser $dbpass
     
    193197    end
    194198
     199    echo "*****"
    195200    echo addstar -D SKY_DEPTH 4 -D CATDIR $catdir -D CAMERA simtest $cmffile -D CATFORMAT $2 -quick-airmass
    196201    exec addstar -D SKY_DEPTH 4 -D CATDIR $catdir -D CAMERA simtest $cmffile -D CATFORMAT $2 -quick-airmass
     
    198203
    199204  if ($SMALLTEST)
    200     echo relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -nloop 0 -D STAR_TOOFEW 0 -update
    201     exec relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -nloop 0 -D STAR_TOOFEW 0 -update
    202 
    203     echo relastro -v -D CATDIR $catdir -images -update-chips -region 8 12 18 22 -update -apply-offsets
    204     exec relastro -v -D CATDIR $catdir -images -update-chips -region 8 12 18 22 -update -apply-offsets
     205    echo relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -images g,r,i,z,y -nloop 0 -D STAR_TOOFEW 0 -update
     206    exec relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -images g,r,i,z,y -nloop 0 -D STAR_TOOFEW 0 -update
     207
     208    echo relastro -v -D CATDIR $catdir -D CAMERA simtest -images -update-chips -region 8 12 18 22 -update -apply-offsets
     209    exec relastro -v -D CATDIR $catdir -D CAMERA simtest -images -update-chips -region 8 12 18 22 -update -apply-offsets
    205210  else
    206     echo relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update
    207     exec relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update
     211    echo relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -images g,r,i,z,y -update
     212    exec relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -images g,r,i,z,y -update
    208213  end
    209214
     
    267272
    268273  if ($SMALLTEST)
    269     echo relphot -D CATDIR $catdir -region 8 12 18 22 -averages -update
    270     exec relphot -D CATDIR $catdir -region 8 12 18 22 -averages -update
     274    echo relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -averages -update
     275    exec relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -averages -update
    271276  else
    272     echo relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update
    273     exec relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update
     277    echo relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -images g,r,i,z,y -update
     278    exec relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -images g,r,i,z,y -update
    274279  end
    275280
     
    352357    exec mkcmf -forcedgalaxy -photcode SIMTEST.$filter.ForcedWarp $rawfile $cmffile -extroot SkyChip -date 2008/1/1 -time $i\:00:00 -mjd 54466.0 -radec $RA $DEC -type $1 -imageID $stkID -sourceID 1 -tess_id $TESS_ID -skycell $SKYCELL
    353358
    354     echo loadgalphot -D CATDIR $catdir -photcode SIMTEST.$filter.ForcedWarp -image-id $stkID $cmffile
    355     exec loadgalphot -D CATDIR $catdir -photcode SIMTEST.$filter.ForcedWarp -image-id $stkID $cmffile
     359    echo loadgalphot -D CATDIR $catdir -D CAMERA simtest -photcode SIMTEST.$filter.ForcedWarp -image-id $stkID $cmffile
     360    exec loadgalphot -D CATDIR $catdir -D CAMERA simtest -photcode SIMTEST.$filter.ForcedWarp -image-id $stkID $cmffile
    356361  end
    357362
    358363  if ($SMALLTEST)
    359     echo relphot -D CATDIR $catdir -region 8 12 18 22 -averages -update
    360     exec relphot -D CATDIR $catdir -region 8 12 18 22 -averages -update
     364    echo relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -averages -update
     365    exec relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -averages -update
    361366  else
    362     echo relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update
    363     exec relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update
    364   end
    365 
    366   echo dvolens -D CATDIR $catdir -region 8 12 18 22 -update-objects -update
    367   exec dvolens -D CATDIR $catdir -region 8 12 18 22 -update-objects -update
     367    echo relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -images g,r,i,z,y -update
     368    exec relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -images g,r,i,z,y -update
     369  end
     370
     371  echo dvolens -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -update-objects -update
     372  exec dvolens -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -update-objects -update
    368373
    369374  if ($PARALLEL)
     
    557562  end
    558563  if ($SMALLTEST)
    559     echo relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -nloop 0 -D STAR_TOOFEW 0 -update -boundary-tree tess.3pi.fits -is-diff-db -statmode WT_MEAN
    560     exec relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -nloop 0 -D STAR_TOOFEW 0 -update -boundary-tree tess.3pi.fits -is-diff-db -statmode WT_MEAN
     564    echo relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -images g,r,i,z,y -nloop 0 -D STAR_TOOFEW 0 -update -boundary-tree tess.3pi.fits -is-diff-db -statmode WT_MEAN
     565    exec relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -images g,r,i,z,y -nloop 0 -D STAR_TOOFEW 0 -update -boundary-tree tess.3pi.fits -is-diff-db -statmode WT_MEAN
    561566  else
    562     echo relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update
    563     exec relphot -D CATDIR $catdir -region 8 12 18 22 -images g,r,i,z,y -update
     567    echo relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -images g,r,i,z,y -update
     568    exec relphot -D CATDIR $catdir -D CAMERA simtest -region 8 12 18 22 -images g,r,i,z,y -update
    564569  end
    565570
Note: See TracChangeset for help on using the changeset viewer.